[PATCH] D21252: [LibFuzzer] Fix flakey ``fuzzer-trace-pc.test`` test on OSX

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 18:04:30 PDT 2016


delcypher created this revision.
delcypher added reviewers: kcc, aizatsky.
delcypher added subscribers: kcc, aizatsky, zaks.anna, kubabrecka, dcoughlin, llvm-commits.

[LibFuzzer] Fix flakey ``fuzzer-trace-pc.test`` test on OSX

When running `LLVMFuzzer-FullCoverageSetTest-TracePC` the memory limit
is sometimes hit which lead to the test failure.

I'm guessing that much more memory is needed on OSX than Linux because
it takes many more iterations for LibFuzzer to hit BINGO on OSX for this
test. I'm not sure if this is to be expected but given that this test
is relying on program counter values it seems reasonable to expect that
the behaviour between platforms could differ.


http://reviews.llvm.org/D21252

Files:
  lib/Fuzzer/test/fuzzer-trace-pc.test

Index: lib/Fuzzer/test/fuzzer-trace-pc.test
===================================================================
--- lib/Fuzzer/test/fuzzer-trace-pc.test
+++ lib/Fuzzer/test/fuzzer-trace-pc.test
@@ -1,3 +1,3 @@
 CHECK: BINGO
 RUN: not LLVMFuzzer-FourIndependentBranchesTest-TracePC      -seed=1 -runs=1000000 2>&1 | FileCheck %s
-RUN: not LLVMFuzzer-FullCoverageSetTest-TracePC              -seed=1 -runs=10000000 2>&1 | FileCheck %s
+RUN: not LLVMFuzzer-FullCoverageSetTest-TracePC              -seed=1 -runs=10000000 -rss_limit_mb=0 2>&1 | FileCheck %s


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21252.60428.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160611/035a27cb/attachment.bin>


More information about the llvm-commits mailing list