diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2015-03-06 19:51:26 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2015-03-06 19:51:26 (GMT) |
commit | 80d7a07519ff53039c8173e599306eb51e1728c1 (patch) | |
tree | 0b93452bd442b1b3ef83bf046cfe4fa6aadc01e1 /src/H5detect.c | |
parent | 2b2320d96cf334313c7a1303d24273d7a5d4b314 (diff) | |
download | hdf5-80d7a07519ff53039c8173e599306eb51e1728c1.zip hdf5-80d7a07519ff53039c8173e599306eb51e1728c1.tar.gz hdf5-80d7a07519ff53039c8173e599306eb51e1728c1.tar.bz2 |
[svn-r26386] Merge r26375 from trunk
Print number of times sigill_handler is called in H5detect.
Part of: HDFFV-8857
Diffstat (limited to 'src/H5detect.c')
-rw-r--r-- | src/H5detect.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/H5detect.c b/src/H5detect.c index aed7514..bec261b 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; |