summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-05-25 03:25:37 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-05-25 03:25:37 (GMT)
commitb6096d832c7d74fbbbbae8f9f3fd1369aa705bbf (patch)
treea6f8209115acc18e9cb9b586b066757ed669d572 /test
parent315ea1e460a51cc3e5d9b89a22e393ae1fc3c14d (diff)
downloadhdf5-b6096d832c7d74fbbbbae8f9f3fd1369aa705bbf.zip
hdf5-b6096d832c7d74fbbbbae8f9f3fd1369aa705bbf.tar.gz
hdf5-b6096d832c7d74fbbbbae8f9f3fd1369aa705bbf.tar.bz2
[svn-r1274] Added code to delete the core file that maybe generated by
SIGFPE during the test.
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 1565888..5f1e25a 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -221,6 +221,8 @@ generates_sigfpe(void)
} else if (WIFSIGNALED(status) && SIGFPE==WTERMSIG(status)) {
puts("Floating-point overflow cases cannot be safely tested.");
skip_overflow_tests_g = TRUE;
+ /* delete the core dump file that SIGFPE may have created */
+ unlink("core");
}
#else
puts("Cannot determine if floating-point overflows generate a SIGFPE;");