summaryrefslogtreecommitdiff
path: root/lib/Fuzzer/test/OutOfMemoryTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fuzzer/test/OutOfMemoryTest.cpp')
-rw-r--r--lib/Fuzzer/test/OutOfMemoryTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Fuzzer/test/OutOfMemoryTest.cpp b/lib/Fuzzer/test/OutOfMemoryTest.cpp
index e5c9f0a038f5..078a39ee1fe9 100644
--- a/lib/Fuzzer/test/OutOfMemoryTest.cpp
+++ b/lib/Fuzzer/test/OutOfMemoryTest.cpp
@@ -8,7 +8,7 @@
#include <cstddef>
#include <cstring>
#include <iostream>
-#include <unistd.h>
+#include <thread>
static volatile char *SinkPtr;
@@ -21,7 +21,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
char *p = new char[kSize];
memset(p, 0, kSize);
SinkPtr = p;
- sleep(1);
+ std::this_thread::sleep_for(std::chrono::seconds(1));
}
}
}