diff options
Diffstat (limited to 'helper.c')
| -rw-r--r-- | helper.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -5,25 +5,29 @@ void print_ok(void) { printf("OK: %s\n", test_name); + fflush(stdout); } void print_stack_alignment_error(void) { printf("KO: [STACK ALIGNMENT]: %s\n", test_name); + fflush(stdout); } void print_signaled_ko(void) { printf("KO: [SEGFAULT]: %s\n", test_name); + fflush(stdout); } void expect_int(int expected, int actual) { if (actual != expected) - printf("KO: [COMPARE]: %s: expected: %d got: %d\n", test_name, expected, actual); + printf("KO: [COMPARE]: %s: expected: %d got: %d\n", test_name, expected, actual); else print_ok(); + fflush(stdout); } |
