diff options
author | Frank.Willmore <frank.willmore@jelly.ad.hdfgroup.org> | 2016-10-25 14:53:44 (GMT) |
---|---|---|
committer | Frank.Willmore <frank.willmore@jelly.ad.hdfgroup.org> | 2016-10-25 14:53:44 (GMT) |
commit | 526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850 (patch) | |
tree | be45f92823727f650b998a6a941918d43c998056 /test/flush1.c | |
parent | b6bb7c123a02570a33f02257d738e50195dbeb3a (diff) | |
download | hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.zip hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.tar.gz hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.tar.bz2 |
Changes to be committed:
modified: bittests.c
modified: cmpd_dset.c
modified: dsets.c
modified: dt_arith.c
modified: dtypes.c
modified: extend.c
modified: fillval.c
modified: filter_fail.c
modified: flush1.c
modified: gen_cross.c
modified: hyperslab.c
modified: istore.c
modified: links.c
modified: links_env.c
modified: objcopy.c
modified: plugin.c
modified: tcheck_version.c
modified: unlink.c
modified: unregister.c
Minor fixes to replace numeric exit codes with MACRO declarations. Not all codes found were boolean, and those cases were not changed.
Diffstat (limited to 'test/flush1.c')
-rw-r--r-- | test/flush1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/flush1.c b/test/flush1.c index f1169ea..64d072a 100644 --- a/test/flush1.c +++ b/test/flush1.c @@ -20,7 +20,7 @@ * Purpose: This is the first half of a two-part test that makes sure * that a file can be read after an application crashes as long * as the file was flushed first. We simulate a crash by - * calling _exit(0) since this doesn't flush HDF5 caches but + * calling _exit(EXIT_SUCCESS) since this doesn't flush HDF5 caches but * still exits with success. */ #include "h5test.h" @@ -83,7 +83,7 @@ create_file(char* name, hid_t fapl) return file; error: - HD_exit(1); + HD_exit(EXIT_FAILURE); } @@ -127,7 +127,7 @@ extend_file(hid_t file) return file; error: - HD_exit(1); + HD_exit(EXIT_FAILURE); } /*------------------------------------------------------------------------- @@ -185,10 +185,10 @@ main(void) fflush(stdout); fflush(stderr); - HD_exit(0); + HD_exit(EXIT_SUCCESS); error: - HD_exit(1); + HD_exit(EXIT_FAILURE); return 1; } |