summaryrefslogtreecommitdiffstats
path: root/test/filter_fail.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/filter_fail.c
parent5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff)
downloadhdf5-78fda912952d977ec6b157d344834112c363dd26.zip
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz
hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2
Fixed some exit calls.
Diffstat (limited to 'test/filter_fail.c')
-rw-r--r--test/filter_fail.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/filter_fail.c b/test/filter_fail.c
index 2acce01..4be2547 100644
--- a/test/filter_fail.c
+++ b/test/filter_fail.c
@@ -347,17 +347,15 @@ error:
* Purpose: Tests the library's behavior when a mandate filter returns
* failure.
*
- * Return: Success: exit(EXIT_SUCCESS)
- * Failure: exit(EXIT_FAILURE)
+ * Return: EXIT_SUCCESS/EXIT_FAILURE
*
* Programmer: Raymond Lu
* 25 August 2010
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
-int main(void)
+int
+main(void)
{
hid_t fapl;
int mdc_nelmts = 0;
@@ -398,7 +396,7 @@ int main(void)
if (nerrors) TEST_ERROR
- return 0;
+ HDexit(EXIT_SUCCESS);
error:
if (nerrors) {
@@ -406,4 +404,4 @@ error:
nerrors, 1==nerrors?"":"S");
HDexit(EXIT_FAILURE);
}
-}
+} /* end main() */