From ca2ede3b63b0b3c12a4059f282c86fd66024dbb7 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 16 Dec 2023 02:00:10 +0100 Subject: Also handle SIGTRAP in tests SIGILL is not the only possible trap handler. On non-x86 archs this is not the case for instance. --- tests/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/common.h b/tests/common.h index 3c116a2..4c34862 100644 --- a/tests/common.h +++ b/tests/common.h @@ -47,6 +47,7 @@ set_fortify_handler (void) sigemptyset (&sa.sa_mask); sigaction (SIGILL, &sa, NULL); + sigaction (SIGTRAP, &sa, NULL); } #define FAIL() \ -- cgit v1.3