summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-09 13:42:34 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:49:30 (GMT)
commit5c864f6448d221541c1f425f3f2593061793f2da (patch)
tree7fd74a721987d86b3ff9eb5ed82ad890c3a3ea75
parent2c46e7dedeebac10444636356f79161a60e796e6 (diff)
downloadcmocka-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.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. */