summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-01-27 22:34:17 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-01-27 22:34:17 (GMT)
commit554d0eaccdd0fb4b86218842045088c2c14b79b2 (patch)
tree6f1448ad300efb19f4499c216c377cd59c0679e4 /test
parentdcde3e4cdf751d564e17dceb2d55bf20bc4ba68e (diff)
downloadhdf5-554d0eaccdd0fb4b86218842045088c2c14b79b2.zip
hdf5-554d0eaccdd0fb4b86218842045088c2c14b79b2.tar.gz
hdf5-554d0eaccdd0fb4b86218842045088c2c14b79b2.tar.bz2
[svn-r24653] HDFFV-8572: test/testhdf5.c main() should not return number of errors
Solution: testhdf5 now exits EXIT_SUCCESS(0) if no errors, else EXIT_FAILURE(1). Tested: Jam only since it is a trivial fix.
Diffstat (limited to 'test')
-rw-r--r--test/testhdf5.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testhdf5.c b/test/testhdf5.c
index f14c2c3..eade815 100644
--- a/test/testhdf5.c
+++ b/test/testhdf5.c
@@ -86,6 +86,11 @@ main(int argc, char *argv[])
if (GetTestCleanup() && !getenv("HDF5_NOCLEANUP"))
TestCleanup();
- return (GetTestNumErrs());
+ /* Exit failure if errors encountered; else exit success. */
+ /* No need to print anything since PerformTests() already does. */
+ if (GetTestNumErrs() > 0)
+ exit(EXIT_FAILURE);
+ else
+ exit(EXIT_SUCCESS);
} /* end main() */