[libFuzzer] Update tests to use more general functions instead of posix specific.
authorMarcos Pividori <mpividori@google.com>
Fri, 16 Dec 2016 17:35:13 +0000 (17:35 +0000)
committerMarcos Pividori <mpividori@google.com>
Fri, 16 Dec 2016 17:35:13 +0000 (17:35 +0000)
commit6a7e4c2e202629c9d60719d7ee0fea4b9eb52c93
tree4ab64329ec709b80f3efb12090daf49e57decc18
parent6c293673303a1bdc8f3c86f544ff6936fbaa28b8
[libFuzzer] Update tests to use more general functions instead of posix specific.

Replace sleep() posix function by a more portable sleep_for() function
from std. Also, ignore memmem() and strcasestr() on Windows.

Differential Revision: https://reviews.llvm.org/D27729

llvm-svn: 289964
llvm/lib/Fuzzer/test/OutOfMemoryTest.cpp
llvm/lib/Fuzzer/test/StrstrTest.cpp