summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Fuzzer/test/CxxStringEqTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp b/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
index 9005ab8467b..e0e23c972cc 100644
--- a/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
+++ b/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
@@ -17,6 +17,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
Sink = Str == "123456"; // Try to confuse the fuzzer
if (Eq) {
std::cout << "BINGO; Found the target, exiting\n";
+ std::cout.flush();
abort();
}
return 0;
OpenPOWER on IntegriCloud