[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.
This commit is contained in:
Albert Cheng 2014-01-27 17:33:34 -05:00
parent 2f86aa7551
commit 50bd3521af

View File

@ -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() */