aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-24 01:04:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-24 01:04:21 +0100
commit5a47d63887a0878243b17799b19c4a0f76d3756d (patch)
tree72da1070587a0cd5c0a9599f6aacf8d4cb15b9c2 /helper.c
parent97e84015b635cf51d32b00000dc3fa25390251b4 (diff)
downloadlibasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.tar.gz
libasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.tar.bz2
libasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.zip
ft_write.s, ft_read.s, ft_strdup.s tests and prettier
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index b2b2a18..1808628 100644
--- a/helper.c
+++ b/helper.c
@@ -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);
}