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:
caa6024
)
[libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage...
author
Kostya Serebryany
<kcc@google.com>
Mon, 19 Sep 2016 20:32:34 +0000
(20:32 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Mon, 19 Sep 2016 20:32:34 +0000
(20:32 +0000)
llvm-svn: 281933
llvm/lib/Fuzzer/FuzzerUtil.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Fuzzer/FuzzerUtil.cpp
b/llvm/lib/Fuzzer/FuzzerUtil.cpp
index
f4c6fa7
..
f06060b
100644
(file)
--- a/
llvm/lib/Fuzzer/FuzzerUtil.cpp
+++ b/
llvm/lib/Fuzzer/FuzzerUtil.cpp
@@
-246,7
+246,7
@@
bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) {
}
void SleepSeconds(int Seconds) {
- s
td::this_thread::sleep_for(std::chrono::seconds(Seconds));
+ s
leep(Seconds); // Use C API to avoid coverage from instrumented libc++.
}
int GetPid() { return getpid(); }