Diagnostic output to stderr may overtake these stdout logs if the streams
are combined by the shell or on the console. fflush() might help realign
them.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
void test_assert_failed(const char *code, const char *file, unsigned int line)
{
printf("%s:%u: Assert failed: %s\n", file, line, code);
+ fflush(stdout);
test_success = FALSE;
}
void test_assert_failed_idx(const char *code, const char *file, unsigned int line, long long i)
{
printf("%s:%u: Assert(#%lld) failed: %s\n", file, line, i, code);
+ fflush(stdout);
test_success = FALSE;
}
if (reason != NULL && *reason != '\0')
printf(": %s", reason);
putchar('\n');
+ fflush(stdout);
total_count++;
}