[llvm-branch-commits] [compiler-rt] a8970df - [ubsan][test] FLush stdout before checking interleaved stdout/stderr

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 28 20:35:18 PST 2020


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;
 }


        


More information about the llvm-branch-commits mailing list