mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(userspace/apps/test): adjust fflush(stdout) calls for better output control
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
90fb9c7952
commit
edeecf7831
@ -31,7 +31,7 @@ int sample_test_fail() { return 1; }
|
|||||||
void __test_prefix(const char *func)
|
void __test_prefix(const char *func)
|
||||||
{
|
{
|
||||||
printf("Testing \033[1;30m%s\033[0m...", func);
|
printf("Testing \033[1;30m%s\033[0m...", func);
|
||||||
fflush(stdout);
|
// fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TEST(func) \
|
#define TEST(func) \
|
||||||
@ -46,8 +46,8 @@ void __test_prefix(const char *func)
|
|||||||
{ \
|
{ \
|
||||||
printf("\033[0;31m FAIL (%d)\033[0m\n", result); \
|
printf("\033[0;31m FAIL (%d)\033[0m\n", result); \
|
||||||
failed_tests[failed_count++] = #func; \
|
failed_tests[failed_count++] = #func; \
|
||||||
|
fflush(stdout); \
|
||||||
} \
|
} \
|
||||||
fflush(stdout); \
|
|
||||||
total_tests++; \
|
total_tests++; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user