1
0
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:
Kostya Serebryany 2016-09-19 20:32:34 +00:00
parent d152981ec9
commit f108480019

View File

@ -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(); }