summaryrefslogtreecommitdiffstats
path: root/test/links_env.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/links_env.c
parent5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff)
downloadhdf5-78fda912952d977ec6b157d344834112c363dd26.zip
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2
Fixed some exit calls.
Diffstat (limited to 'test/links_env.c')
-rw-r--r--test/links_env.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/links_env.c b/test/links_env.c
index dff185c..efb8cfd 100644
--- a/test/links_env.c
+++ b/test/links_env.c
@@ -134,10 +134,9 @@ external_link_env(hid_t fapl, hbool_t new_format)
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose: Test external link with environment variable HDF5_EXT_PREFIX
+ * Purpose: Test external link with environment variable HDF5_EXT_PREFIX
*
- * Return: Success: exit(EXIT_SUCCESS)
- * Failure: exit(EXIT_FAILURE)
+ * Return: EXIT_SUCCESS/EXIT_FAILURE
*
* Programmer: Vailin Choi; Nov 2010
*
@@ -175,9 +174,10 @@ main(void)
/* clean up tmp_links_env directory created by external link tests */
HDrmdir(TMPDIR);
- return 0;
+ HDexit(EXIT_SUCCESS);
error:
HDputs("*** TESTS FAILED ***");
- return 1;
-}
+ HDexit(EXIT_FAILURE);
+} /* end main() */
+