summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c6
-rw-r--r--source/test/programs/signals.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c
index 505392e..ce3a93b 100644
--- a/source/kit_test/test.c
+++ b/source/kit_test/test.c
@@ -85,13 +85,17 @@ static void setup_signals() {
}
static int run_test(volatile int i) {
+ printf(" %% TEST %d\n\n", i);
+ printf(" %% SETJPM\n\n");
int signum = setjmp(kit_test_restore_execution);
-
+
+ printf(" %% SIGNUM=%d\n\n", signum);
if (signum != 0) {
kit_tests_list.tests[i].signal = signum;
return 0;
}
+ printf(" %% RUN TEST\n\n");
kit_tests_list.tests[i].test_fn(i, report);
return 1;
}
diff --git a/source/test/programs/signals.c b/source/test/programs/signals.c
index c362021..c68d5e3 100644
--- a/source/test/programs/signals.c
+++ b/source/test/programs/signals.c
@@ -1,17 +1,16 @@
#include "../../kit_test/test.h"
#include <stdlib.h>
+#include <stdio.h>
TEST("abort") {
-#if !defined(_WIN32) || defined(__CYGWIN__)
+ printf("** ABORT\n\n");
abort();
-#endif
}
TEST("invalid access") {
-#if !defined(_WIN32) || defined(__CYGWIN__)
+ printf("** INVALID ACCESS\n\n");
*(volatile int *) NULL = 42;
-#endif
}
int main(int argc, char **argv) {