From ee528260573d60ec8db5c1e2da203631a58bd8c2 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Fri, 19 Aug 2022 17:01:06 +0400 Subject: test win32 --- source/kit_test/test.c | 4 ++++ source/test/programs/signals.cpp | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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 #include +#include + 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 {}; } -- cgit v1.2.3