summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c4
-rw-r--r--source/test/programs/signals.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c
index 9e5a7b2..84e7700 100644
--- a/source/kit_test/test.c
+++ b/source/kit_test/test.c
@@ -7,6 +7,8 @@
#include <setjmp.h>
#include <signal.h>
+#include <stdlib.h>
+
kit_tests_list_t kit_tests_list = { 0 };
static void report(int i, int line, int ok) {
@@ -67,6 +69,8 @@ static char const *const signames[] = {
};
static void handle_signal(int signum) {
+ printf("SIGNAL: %d\n\n", signum);
+ exit(42);
longjmp(kit_test_restore_execution, signum);
}
diff --git a/source/test/programs/signals.cpp b/source/test/programs/signals.cpp
index d0539db..faea12e 100644
--- a/source/test/programs/signals.cpp
+++ b/source/test/programs/signals.cpp
@@ -6,7 +6,6 @@
TEST("c++ exception") {
printf("** C++ EXCEPTION\n\n");
- exit(42);
throw std::exception {};
}