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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3d4112198ff877e0d39d42ed2bb988044ddf729;p=llvm [libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage from instrumented libc++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281933 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/FuzzerUtil.cpp b/lib/Fuzzer/FuzzerUtil.cpp index f4c6fa7d0ba..f06060ba8af 100644 --- a/lib/Fuzzer/FuzzerUtil.cpp +++ b/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(); }