summaryrefslogtreecommitdiffstats
path: root/test/unlink.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-09-07 01:06:26 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-09-07 01:06:26 (GMT)
commit78fda912952d977ec6b157d344834112c363dd26 (patch)
tree20097d71e9b0cf4e300ffe38423f8a3c8f037329 /test/unlink.c
parent5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff)
downloadhdf5-78fda912952d977ec6b157d344834112c363dd26.zip
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2
Fixed some exit calls.
Diffstat (limited to 'test/unlink.c')
-rw-r--r--test/unlink.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/unlink.c b/test/unlink.c
index f79aa29..6825dec 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -2421,17 +2421,13 @@ error:
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose: Test unlinking operations
+ * Purpose: Test unlinking operations
*
- * Return: Success: zero
- *
- * Failure: non-zero
+ * Return: EXIT_SUCCESS/EXIT_FAILURE
*
* Programmer: Robb Matzke
* Friday, September 25, 1998
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
int
@@ -2551,16 +2547,16 @@ main(void)
if (nerrors) {
HDprintf("***** %d FAILURE%s! *****\n", nerrors, 1==nerrors?"":"S");
- exit(EXIT_FAILURE);
+ HDexit(EXIT_FAILURE);
}
HDputs("All unlink tests passed.");
h5_cleanup(FILENAME, fapl);
- return 0;
+ HDexit(EXIT_SUCCESS);
error:
- return 1;
-}
+ HDexit(EXIT_FAILURE);
+} /* end main() */