Skip to content
Snippets Groups Projects
Commit 07763ecb authored by Dragoș-Iulian ARGINT (94922)'s avatar Dragoș-Iulian ARGINT (94922)
Browse files

Make 3-raid checker fflush when printing


Signed-off-by: default avatarDragoș-Iulian ARGINT <dragos.argint@stud.acs.upb.ro>
parent 32f3bdda
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ static size_t total_points = 0;
static void test_do_fail(size_t points)
{
printf("failed [ 0/%3zu]\n", max_points);
fflush(stdout);
#ifdef EXIT_IF_FAIL
exit(EXIT_FAILURE);
#endif
......@@ -24,6 +25,7 @@ static void test_do_pass(size_t points)
{
total_points += points;
printf("passed [%3zu/%3zu]\n", points, max_points);
fflush(stdout);
}
void basic_test(int condition)
......@@ -49,6 +51,7 @@ static void print_test_total(void)
for (i = 0; i < 62; i++)
printf(" ");
printf("Total: [%3zu/%3zu]\n", total_points, max_points);
fflush(stdout);
}
static void run_test(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment