diff options
author | Reid Kleckner <rnk@google.com> | 2017-04-03 23:00:25 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-04-03 23:00:25 +0000 |
commit | 67cecd1e1c63db3d552a1244a9e022fc870efe49 (patch) | |
tree | 844cdc6d235e6f11c47a9e251c7b5086e000b3e7 | |
parent | 01bba1781968aff34b9fa07343f9bcbe041ab670 (diff) | |
download | bcm5719-llvm-67cecd1e1c63db3d552a1244a9e022fc870efe49.tar.gz bcm5719-llvm-67cecd1e1c63db3d552a1244a9e022fc870efe49.zip |
[Fuzzer] Flush std::cout before aborting in CxxStringEqTest
On Windows, abort() does not appear to flush std::cout. Should fix red
sanitizer-windows bot.
llvm-svn: 299398
-rw-r--r-- | llvm/lib/Fuzzer/test/CxxStringEqTest.cpp | 1 |
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; |