From: Kostya Serebryany Date: Mon, 19 Sep 2016 20:32:34 +0000 (+0000) Subject: [libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3750c04f7e956bb24452556ca42ab3e2942a5b00;p=platform%2Fupstream%2Fllvm.git [libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage from instrumented libc++ llvm-svn: 281933 --- diff --git a/llvm/lib/Fuzzer/FuzzerUtil.cpp b/llvm/lib/Fuzzer/FuzzerUtil.cpp index f4c6fa7..f06060b 100644 --- a/llvm/lib/Fuzzer/FuzzerUtil.cpp +++ b/llvm/lib/Fuzzer/FuzzerUtil.cpp @@ -246,7 +246,7 @@ bool ParseDictionaryFile(const std::string &Text, std::vector *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(); }