[svn-r1274] Added code to delete the core file that maybe generated by

SIGFPE during the test.
This commit is contained in:
Albert Cheng 1999-05-24 22:25:37 -05:00
parent 315ea1e460
commit b6096d832c

View File

@ -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;");