summaryrefslogtreecommitdiffstats
path: root/test/dt_arith.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-04-25 01:02:17 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-04-25 01:02:17 (GMT)
commitb23da3a7f52628fd846c7cd991cd820b3b217112 (patch)
tree0c0f094a55a430a8ab2788577c0b3606cb198859 /test/dt_arith.c
parent46809b86cf01d9648fc452086f5bcb6783f07dfb (diff)
downloadhdf5-b23da3a7f52628fd846c7cd991cd820b3b217112.zip
hdf5-b23da3a7f52628fd846c7cd991cd820b3b217112.tar.gz
hdf5-b23da3a7f52628fd846c7cd991cd820b3b217112.tar.bz2
[svn-r18628] Description:
Bring r18627 from trunk to 1.8 branch: More progress toward addressing Bz#1398: add 'volatile' keyword to floating- point types when detecting their properties. Also, minor code formatting cleanups. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug) (h5committested on trunk)
Diffstat (limited to 'test/dt_arith.c')
-rw-r--r--test/dt_arith.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c
index ff6b4e0..78a05be 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -2821,6 +2821,10 @@ test_conv_flt_1 (const char *name, int run_test, hid_t src, hid_t dst)
return 0; /*child exit after catching SIGFPE*/
} else if (WIFEXITED(status)) {
return WEXITSTATUS(status);
+ } else if (WIFSIGNALED(status)) {
+ sprintf(str, " Child caught signal %d.", WTERMSIG(status));
+ HDputs(str);
+ return 1; /*child exit after catching non-SIGFPE signal */
} else {
HDputs(" Child didn't exit normally.");
return 1;
@@ -3367,10 +3371,7 @@ test_conv_flt_1 (const char *name, int run_test, hid_t src, hid_t dst)
if(!fails_all_tests)
PASSED();
- done:
-#ifdef AKCDEBUG
- printf("uflow=%d, fails_all_tests=%d\n", uflow, fails_all_tests);
-#endif
+done:
if (buf) aligned_free(buf);
if (saved) aligned_free(saved);
if (aligned) HDfree(aligned);
@@ -3391,7 +3392,7 @@ test_conv_flt_1 (const char *name, int run_test, hid_t src, hid_t dst)
return 0;
#endif
- error:
+error:
if (buf) aligned_free(buf);
if (saved) aligned_free(saved);
if (aligned) HDfree(aligned);