diff options
| author | q66 | 2023-12-16 02:00:10 +0100 |
|---|---|---|
| committer | q66 | 2023-12-16 02:00:43 +0100 |
| commit | ca2ede3b63b0b3c12a4059f282c86fd66024dbb7 (patch) | |
| tree | 1246e8e5e318c0df0a5df45c5dfa35db4381e3a6 | |
| parent | 8e15a7599e020159c51475d815d92f7384d3b924 (diff) | |
Also handle SIGTRAP in tests
SIGILL is not the only possible trap handler. On non-x86 archs
this is not the case for instance.
| -rw-r--r-- | tests/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
| 47 | sigemptyset (&sa.sa_mask); | 47 | sigemptyset (&sa.sa_mask); |
| 48 | 48 | ||
| 49 | sigaction (SIGILL, &sa, NULL); | 49 | sigaction (SIGILL, &sa, NULL); |
| 50 | sigaction (SIGTRAP, &sa, NULL); | ||
| 50 | } | 51 | } |
| 51 | 52 | ||
| 52 | #define FAIL() \ | 53 | #define FAIL() \ |
