From e815cf7205aea6e881bfdd9e26504b40f544842d Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Fri, 19 Aug 2022 17:19:46 +0400 Subject: test win32 --- source/kit_test/test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/kit_test') diff --git a/source/kit_test/test.c b/source/kit_test/test.c index 84e7700..2daf94b 100644 --- a/source/kit_test/test.c +++ b/source/kit_test/test.c @@ -69,8 +69,6 @@ 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); } @@ -193,7 +191,8 @@ int kit_run_tests(int argc, char **argv) { if (kit_tests_list.tests[i].signal != 0) { int signum = kit_tests_list.tests[i].signal; if (signum >= 0 && - signum < sizeof signames / sizeof *signames) + signum < sizeof signames / sizeof *signames && + signames[signum] != NULL) quiet || printf("Signal \"%s\" (%d) for \"%s\" in \"%s\"!\n", signames[signum], signum, -- cgit v1.2.3