[ubsan][test] FLush stdout before checking interleaved stdout/stderr

Detected by musl.
This commit is contained in:
Fangrui Song 2020-12-28 20:30:31 -08:00
parent c5d100fdf2
commit a8970dff1a

View File

@ -29,6 +29,7 @@ void __ubsan_on_report(void) {
printf("Issue: %s\n", IssueKind);
printf("Location: %s:%u:%u\n", Filename, Line, Col);
printf("Message: %s\n", Message);
fflush(stdout);
(void)Addr;
}