summaryrefslogtreecommitdiffstats
path: root/test/istore.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/istore.c
parent5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff)
downloadhdf5-78fda912952d977ec6b157d344834112c363dd26.zip
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2
Fixed some exit calls.
Diffstat (limited to 'test/istore.c')
-rw-r--r--test/istore.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/test/istore.c b/test/istore.c
index 8759be3..c8fe866 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -579,17 +579,13 @@ error:
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose: Tests indexed storage stuff.
+ * Purpose: Tests indexed storage
*
- * Return: Success: exit(EXIT_SUCCESS)
- *
- * Failure: exit(EXIT_FAILURE)
+ * Return: EXIT_SUCCESS/EXIT_FAILURE
*
* Programmer: Robb Matzke
* Wednesday, October 15, 1997
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
int
@@ -618,9 +614,6 @@ main(int argc, char *argv[])
size_of_test |= TEST_LARGE;
} else {
HDprintf("unrecognized argument: %s\n", argv[i]);
-#if 0
- exit(EXIT_FAILURE);
-#endif
}
}
}
@@ -654,7 +647,7 @@ main(int argc, char *argv[])
h5_fixname(FILENAME[0], fapl, filename, sizeof filename);
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl)) < 0) {
HDprintf("Cannot create file %s; test aborted\n", filename);
- exit(EXIT_FAILURE);
+ HDexit(EXIT_FAILURE);
}
/* Initialize chunk dimensions */
@@ -722,13 +715,13 @@ main(int argc, char *argv[])
if (nerrors) {
HDprintf("***** %d I-STORE TEST%s FAILED! *****\n",
nerrors, 1 == nerrors ? "" : "S");
- exit(EXIT_FAILURE);
+ HDexit(EXIT_FAILURE);
}
HDprintf("All i-store tests passed.\n");
h5_cleanup(FILENAME, fapl);
- return 0;
+ HDexit(EXIT_SUCCESS);
}