summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-03-05 22:46:07 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2015-03-05 22:46:07 (GMT)
commit19fa03d5a873af834a1c8cdb14a95c38b486ab69 (patch)
tree1dfc07eccb94bb4fafe1259fccb2561d0819caf4
parent967c265541c06b740074e20dc4240304ff9a0a8e (diff)
downloadhdf5-19fa03d5a873af834a1c8cdb14a95c38b486ab69.zip
hdf5-19fa03d5a873af834a1c8cdb14a95c38b486ab69.tar.gz
hdf5-19fa03d5a873af834a1c8cdb14a95c38b486ab69.tar.bz2
[svn-r26375] Print number of times sigill_handler is called in H5detect.
Part of: HDFFV-8857
-rw-r--r--src/H5detect.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index b902af4..fc0570c 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -858,6 +858,7 @@ done:\n\
printf("/* signal_handlers tested: %d times */\n", signal_handler_tested_g);
printf("/* sigbus_handler called: %d times */\n", sigbus_handler_called_g);
printf("/* sigsegv_handler called: %d times */\n", sigsegv_handler_called_g);
+ printf("/* sigill_handler called: %d times */\n", sigill_handler_called_g);
} /* end print_results() */
@@ -1750,13 +1751,17 @@ main(void)
#if defined(H5SETJMP) && defined(H5_HAVE_SIGNAL)
/* verify the SIGBUS and SIGSEGV handlers work properly */
- if (verify_signal_handlers (SIGBUS, sigbus_handler) != 0){
- fprintf(stderr, "Signal handler %s for signal %d failed\n",
- "sigbus_handler", SIGBUS);
+ if (verify_signal_handlers(SIGBUS, sigbus_handler) != 0) {
+ fprintf(stderr, "Signal handler %s for signal %d failed\n",
+ "sigbus_handler", SIGBUS);
}
- if (verify_signal_handlers (SIGSEGV, sigsegv_handler) != 0){
- fprintf(stderr, "Signal handler %s for signal %d failed\n",
- "sigsegv_handler", SIGSEGV);
+ if (verify_signal_handlers(SIGSEGV, sigsegv_handler) != 0) {
+ fprintf(stderr, "Signal handler %s for signal %d failed\n",
+ "sigsegv_handler", SIGSEGV);
+ }
+ if (verify_signal_handlers(SIGILL, sigill_handler) != 0) {
+ fprintf(stderr, "Signal handler %s for signal %d failed\n",
+ "sigill_handler", SIGILL);
}
#else
align_status_g |= STA_NoHandlerVerify;