mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r806] Set it to exit with non-zero code when errors encountered or when
test table overflows. Tested Platform: Irix 6.2
This commit is contained in:
parent
2a5409cf5c
commit
93493d2a97
@ -52,7 +52,7 @@ static char RcsId[] = "@(#)$Revision$";
|
||||
static int Index = 0;
|
||||
|
||||
/* Global variables */
|
||||
int num_errs;
|
||||
int num_errs = 0;
|
||||
int Verbosity;
|
||||
|
||||
/* ANY new test needs to have a prototype in tproto.h */
|
||||
@ -75,7 +75,7 @@ InitTest(const char *TheName, void (*TheCall) (void), void (*Cleanup) (void), co
|
||||
{
|
||||
if (Index >= MAXNUMOFTESTS) {
|
||||
print_func("Uh-oh, too many tests added, increase MAXNUMOFTEST!\n");
|
||||
exit(0);
|
||||
exit(-1);
|
||||
} /* end if */
|
||||
HDstrcpy(Test[Index].Description, TheDescr);
|
||||
HDstrcpy(Test[Index].Name, TheName);
|
||||
@ -294,6 +294,5 @@ main(int argc, char *argv[])
|
||||
if (!Test[Loop].SkipFlag && Test[Loop].Cleanup!=NULL)
|
||||
(*Test[Loop].Cleanup) ();
|
||||
}
|
||||
exit(0);
|
||||
return (0);
|
||||
return (num_errs);
|
||||
} /* end main() */
|
||||
|
Loading…
Reference in New Issue
Block a user