From edeecf7831e35484144254de817602dce7013c58 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 5 Mar 2025 04:19:34 +0000 Subject: [PATCH] fix(userspace/apps/test): adjust fflush(stdout) calls for better output control Signed-off-by: EnderIce2 --- Userspace/apps/test/libc_test/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userspace/apps/test/libc_test/main.c b/Userspace/apps/test/libc_test/main.c index d546a329..321a17c9 100644 --- a/Userspace/apps/test/libc_test/main.c +++ b/Userspace/apps/test/libc_test/main.c @@ -31,7 +31,7 @@ int sample_test_fail() { return 1; } void __test_prefix(const char *func) { printf("Testing \033[1;30m%s\033[0m...", func); - fflush(stdout); + // fflush(stdout); } #define TEST(func) \ @@ -46,8 +46,8 @@ void __test_prefix(const char *func) { \ printf("\033[0;31m FAIL (%d)\033[0m\n", result); \ failed_tests[failed_count++] = #func; \ + fflush(stdout); \ } \ - fflush(stdout); \ total_tests++; \ } while (0)