From 825205b7486b853f398f0e7b0252a52058b642e4 Mon Sep 17 00:00:00 2001 From: "Korn, Uwe" Date: Sat, 3 Nov 2018 10:51:18 +0100 Subject: [PATCH] Always raise SIGFPE --- src/signalhandler_unittest.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/signalhandler_unittest.cc b/src/signalhandler_unittest.cc index 36d957b..8b15cb9 100644 --- a/src/signalhandler_unittest.cc +++ b/src/signalhandler_unittest.cc @@ -60,6 +60,7 @@ static void* DieInThread(void*) { // Use volatile to prevent from these to be optimized away. volatile int a = 0; volatile int b = 1 / a; + pthread_kill(pthread_self(), SIGFPE); fprintf(stderr, "We should have died: b=%d\n", b); return NULL; } -- 2.19.1