summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mytap/tap.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index fceac951aff..29dc765950f 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -152,11 +152,19 @@ static signal_entry install_signal[]= {
{ SIGABRT, handle_core_signal },
{ SIGFPE, handle_core_signal },
{ SIGSEGV, handle_core_signal },
- { SIGBUS, handle_core_signal },
- { SIGXCPU, handle_core_signal },
- { SIGXFSZ, handle_core_signal },
- { SIGSYS, handle_core_signal },
- { SIGTRAP, handle_core_signal }
+ { SIGBUS, handle_core_signal }
+#ifdef SIGXCPU
+ , { SIGXCPU, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGXFSZ, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGSYS, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGTRAP, handle_core_signal }
+#endif
};
void