summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:01:06 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:01:06 +0400
commitee528260573d60ec8db5c1e2da203631a58bd8c2 (patch)
treeee0d582f76c73ffe38a8c85c885b3b31510423d1
parentd00fae68f391cc5a39fc93c28a71a86695d7d5b7 (diff)
downloadkit-ee528260573d60ec8db5c1e2da203631a58bd8c2.zip
test win32
-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 {};
}