summaryrefslogtreecommitdiff
path: root/src/cmocka.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-09 14:42:34 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-10 15:49:30 +0100
commit5c864f6448d221541c1f425f3f2593061793f2da (patch)
tree7fd74a721987d86b3ff9eb5ed82ad890c3a3ea75 /src/cmocka.c
parent2c46e7dedeebac10444636356f79161a60e796e6 (diff)
downloadcmocka-5c864f6448d221541c1f425f3f2593061793f2da.tar.gz
cmocka-5c864f6448d221541c1f425f3f2593061793f2da.tar.bz2
cmocka-5c864f6448d221541c1f425f3f2593061793f2da.zip
cmocka: Only handle SIGBUS and SIGSYS if the system supports it.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/cmocka.c')
-rw-r--r--src/cmocka.c4
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. */