mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[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:
parent
2f86aa7551
commit
50bd3521af
@ -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() */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user