diff options
Diffstat (limited to 'test/fuzzer/SleepOneSecondTest.cpp')
-rw-r--r-- | test/fuzzer/SleepOneSecondTest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fuzzer/SleepOneSecondTest.cpp b/test/fuzzer/SleepOneSecondTest.cpp new file mode 100644 index 000000000000..27de2f4f7002 --- /dev/null +++ b/test/fuzzer/SleepOneSecondTest.cpp @@ -0,0 +1,13 @@ +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. + +// Simple test for a fuzzer: it simply sleeps for 1 second. +#include <cstddef> +#include <cstdint> +#include <thread> + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { + std::this_thread::sleep_for(std::chrono::seconds(1)); + return 0; +} + |