fix(userspace/apps/test): adjust fflush(stdout) calls for better output control

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-05 04:19:34 +00:00
parent 90fb9c7952
commit edeecf7831
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -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); \
} \
total_tests++; \
} while (0)