diff options
-rw-r--r-- | test/testhdf5.c | 7 |
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() */ |