diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1998-10-27 17:05:37 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1998-10-27 17:05:37 (GMT) |
commit | 93493d2a97921cbbde5f26ea097eeebcf8307dba (patch) | |
tree | aa3fab16cba6e6080dff8056028a06357c8a9ae3 /test | |
parent | 2a5409cf5c184bb18bade07655fe53955a2df590 (diff) | |
download | hdf5-93493d2a97921cbbde5f26ea097eeebcf8307dba.zip hdf5-93493d2a97921cbbde5f26ea097eeebcf8307dba.tar.gz hdf5-93493d2a97921cbbde5f26ea097eeebcf8307dba.tar.bz2 |
[svn-r806] Set it to exit with non-zero code when errors encountered or whenhdf5-1_0_1hdf5-1_0_0
test table overflows.
Tested Platform: Irix 6.2
Diffstat (limited to 'test')
-rw-r--r-- | test/testhdf5.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/testhdf5.c b/test/testhdf5.c index 612a4ac..85b22a2 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -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() */ |