diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-07 01:06:26 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-09-07 01:06:26 (GMT) |
commit | 78fda912952d977ec6b157d344834112c363dd26 (patch) | |
tree | 20097d71e9b0cf4e300ffe38423f8a3c8f037329 /test/extend.c | |
parent | 5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff) | |
download | hdf5-78fda912952d977ec6b157d344834112c363dd26.zip hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2 |
Fixed some exit calls.
Diffstat (limited to 'test/extend.c')
-rw-r--r-- | test/extend.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/test/extend.c b/test/extend.c index f8c091b..a31ac0e 100644 --- a/test/extend.c +++ b/test/extend.c @@ -219,23 +219,15 @@ error: /*------------------------------------------------------------------------- - * Function: main + * Function: main * - * Purpose: Tests extendible datasets + * Purpose: Tests extendible datasets * - * Return: Success: exit(0) - * - * Failure: exit(non-zero) + * Return: EXIT_SUCCESS/EXIT_FAILURE * * Programmer: Robb Matzke * Friday, January 30, 1998 * - * Modifications: - * Took main data code out into write_data() routine, to allow - * different dataset creation property list settings to be tested. - * Quincey Koziol - * Tuesday, June 10, 2003 - * *------------------------------------------------------------------------- */ int @@ -290,16 +282,16 @@ main (void) if(nerrors) { HDprintf("***** %d FAILURE%s! *****\n", nerrors, (1 == nerrors) ? "" : "S"); - exit(EXIT_FAILURE); + HDexit(EXIT_FAILURE); } /* end if */ HDprintf("All extend tests passed.\n"); h5_cleanup(FILENAME, fapl); - return 0; + HDexit(EXIT_SUCCESS); error: HDprintf("*** One or more extend tests failed ***\n"); - return 1; -} + HDexit(EXIT_FAILURE); +} /* end main() */ |