[llvm] r299398 - [Fuzzer] Flush std::cout before aborting in CxxStringEqTest
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 16:00:25 PDT 2017
Author: rnk
Date: Mon Apr 3 18:00:25 2017
New Revision: 299398
URL: http://llvm.org/viewvc/llvm-project?rev=299398&view=rev
Log:
[Fuzzer] Flush std::cout before aborting in CxxStringEqTest
On Windows, abort() does not appear to flush std::cout. Should fix red
sanitizer-windows bot.
Modified:
llvm/trunk/lib/Fuzzer/test/CxxStringEqTest.cpp
Modified: llvm/trunk/lib/Fuzzer/test/CxxStringEqTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/CxxStringEqTest.cpp?rev=299398&r1=299397&r2=299398&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/CxxStringEqTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/CxxStringEqTest.cpp Mon Apr 3 18:00:25 2017
@@ -17,6 +17,7 @@ extern "C" int LLVMFuzzerTestOneInput(co
Sink = Str == "123456"; // Try to confuse the fuzzer
if (Eq) {
std::cout << "BINGO; Found the target, exiting\n";
+ std::cout.flush();
abort();
}
return 0;
More information about the llvm-commits
mailing list