summaryrefslogtreecommitdiffstats
path: root/test/testhdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-01-27 22:33:34 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-01-27 22:33:34 (GMT)
commit50bd3521af6fa564d2ad2abfd3eeec49eabdebd5 (patch)
tree45960096cf6b167bae12732089054b93b26ce535 /test/testhdf5.c
parent2f86aa75516bf4be8b8d250d4776bb89e1c5bfab (diff)
downloadhdf5-50bd3521af6fa564d2ad2abfd3eeec49eabdebd5.zip
hdf5-50bd3521af6fa564d2ad2abfd3eeec49eabdebd5.tar.gz
hdf5-50bd3521af6fa564d2ad2abfd3eeec49eabdebd5.tar.bz2
[svn-r24652] 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/testhdf5.c')
-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() */