summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:56:21 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:56:21 +0400
commitd00fae68f391cc5a39fc93c28a71a86695d7d5b7 (patch)
treeb08afa2b7e6b506bcff8c1085388b1c0ee7d7005 /source
parent7fb929b0b1223db39636e96d48a9cdf728856ebb (diff)
downloadkit-d00fae68f391cc5a39fc93c28a71a86695d7d5b7.zip
test win32
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c7
-rw-r--r--source/test/programs/signals.cpp2
2 files changed, 1 insertions, 8 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c
index 421a459..9e5a7b2 100644
--- a/source/kit_test/test.c
+++ b/source/kit_test/test.c
@@ -85,23 +85,18 @@ 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;
}
int kit_run_tests(int argc, char **argv) {
- printf(" %% setup_signals\n\n");
setup_signals();
int success_count = 0;
@@ -112,7 +107,6 @@ int kit_run_tests(int argc, char **argv) {
int term_color = 1;
int carriage_return = 1;
- printf(" %% parse cmd args\n\n");
for (int i = 0; i < argc; i++)
if (strcmp("--no-term-color", argv[i]) == 0)
term_color = 0;
@@ -124,7 +118,6 @@ int kit_run_tests(int argc, char **argv) {
if (quiet)
term_color = 0;
- printf(" %% testing loop\n\n");
for (int i = 0; i < kit_tests_list.size && i < KIT_TESTS_SIZE_LIMIT;
i++) {
color_code(term_color, yellow);
diff --git a/source/test/programs/signals.cpp b/source/test/programs/signals.cpp
index 868e9c0..d0539db 100644
--- a/source/test/programs/signals.cpp
+++ b/source/test/programs/signals.cpp
@@ -6,6 +6,7 @@
TEST("c++ exception") {
printf("** C++ EXCEPTION\n\n");
+ exit(42);
throw std::exception {};
}
@@ -20,7 +21,6 @@ TEST("invalid access") {
}
int main(int argc, char **argv) {
- printf(" %% run_tests\n\n");
if (run_tests(argc, argv) != 1)
return 1;