projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01bba17
)
[Fuzzer] Flush std::cout before aborting in CxxStringEqTest
author
Reid Kleckner
<rnk@google.com>
Mon, 3 Apr 2017 23:00:25 +0000
(23:00 +0000)
committer
Reid Kleckner
<rnk@google.com>
Mon, 3 Apr 2017 23:00:25 +0000
(23:00 +0000)
On Windows, abort() does not appear to flush std::cout. Should fix red
sanitizer-windows bot.
llvm-svn: 299398
llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
b/llvm/lib/Fuzzer/test/CxxStringEqTest.cpp
index 9005ab8467b30a1142f37ffce5aae89e6e027755..e0e23c972ccbacff501387cf6726a6be37d1a9f0 100644
(file)
--- 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;