diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-02-09 14:42:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-10 15:49:30 +0100 |
commit | 5c864f6448d221541c1f425f3f2593061793f2da (patch) | |
tree | 7fd74a721987d86b3ff9eb5ed82ad890c3a3ea75 | |
parent | 2c46e7dedeebac10444636356f79161a60e796e6 (diff) | |
download | cmocka-5c864f6448d221541c1f425f3f2593061793f2da.zip cmocka-5c864f6448d221541c1f425f3f2593061793f2da.tar.gz cmocka-5c864f6448d221541c1f425f3f2593061793f2da.tar.bz2 |
cmocka: Only handle SIGBUS and SIGSYS if the system supports it.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/cmocka.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmocka.c b/src/cmocka.c index 8a7c9e1..56ac54a 100644 --- a/src/cmocka.c +++ b/src/cmocka.c @@ -296,8 +296,12 @@ static const int exception_signals[] = { SIGFPE, SIGILL, SIGSEGV, +#ifdef SIGBUS SIGBUS, +#endif +#ifdef SIGSYS SIGSYS, +#endif }; /* Default signal functions that should be restored after a test is complete. */ |