projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c46e7d
)
cmocka: Only handle SIGBUS and SIGSYS if the system supports it.
author
Andreas Schneider
<asn@cryptomilk.org>
Mon, 9 Feb 2015 13:42:34 +0000
(14:42 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000
(15:49 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c
patch
|
blob
|
history
diff --git
a/src/cmocka.c
b/src/cmocka.c
index
8a7c9e1
..
56ac54a
100644
(file)
--- 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. */