Author: Fangrui Song Date: 2020-12-28T20:30:32-08:00 New Revision: a8970dff1aece1f83e63f723847098ba992ef185
URL: https://github.com/llvm/llvm-project/commit/a8970dff1aece1f83e63f723847098ba992ef185 DIFF: https://github.com/llvm/llvm-project/commit/a8970dff1aece1f83e63f723847098ba992ef185.diff LOG: [ubsan][test] FLush stdout before checking interleaved stdout/stderr Detected by musl. Added: Modified: compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp Removed: ################################################################################ diff --git a/compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp b/compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp index c02702847afb..f3b13e33f123 100644 --- a/compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp +++ b/compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp @@ -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; } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits