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/dt_arith.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/dt_arith.c')
-rw-r--r-- | test/dt_arith.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c index 1ebcf74..c5c14c87 100644 --- a/test/dt_arith.c +++ b/test/dt_arith.c @@ -567,7 +567,7 @@ generates_sigfpe(void) HDfflush(stderr); if ((pid=fork()) < 0) { HDperror("fork"); - HDexit(1); + HDexit(EXIT_FAILURE); } else if (0==pid) { for (i=0; i<2000; i++) { for(j = 0; j < sizeof(double); j++) @@ -575,7 +575,7 @@ generates_sigfpe(void) f = (float)d; some_dummy_func((float)f); } - HDexit(0); + HDexit(EXIT_SUCCESS); } while (pid!=waitpid(pid, &status, 0)) @@ -3346,7 +3346,7 @@ done: if(run_test==TEST_NOOP || run_test==TEST_NORMAL) HDexit(MIN((int)fails_all_tests, 254)); else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL) - HDexit(0); + HDexit(EXIT_SUCCESS); HDassert(0 && "Should not reach this point!"); return 1; #else @@ -3372,7 +3372,7 @@ error: if(run_test==TEST_NOOP || run_test==TEST_NORMAL) HDexit(MIN(MAX((int)fails_all_tests, 1), 254)); else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL) - HDexit(1); + HDexit(EXIT_FAILURE); HDassert(0 && "Should not reach this point!"); return 1; #else @@ -5251,7 +5251,7 @@ main(void) if (nerrors) { printf("***** %lu FAILURE%s! *****\n", nerrors, 1==nerrors?"":"S"); - HDexit(1); + HDexit(EXIT_FAILURE); } printf("All data type tests passed.\n"); return 0; |