mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage from instrumented libc++
llvm-svn: 281933
This commit is contained in:
parent
d152981ec9
commit
f108480019
@ -246,7 +246,7 @@ bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) {
|
||||
}
|
||||
|
||||
void SleepSeconds(int Seconds) {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(Seconds));
|
||||
sleep(Seconds); // Use C API to avoid coverage from instrumented libc++.
|
||||
}
|
||||
|
||||
int GetPid() { return getpid(); }
|
||||
|
Loading…
Reference in New Issue
Block a user