diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-04-20 06:46:14 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-04-20 06:46:14 +0000 |
commit | 1fe2897b928694f85f35e6435c58d277c43c6411 (patch) | |
tree | fbd04fcb79471184d8aa4db3c27b4f3701c26ded /lib/fuzzer/tests | |
parent | 023daf3d10db7fe6065eeb810c39109478ada10f (diff) | |
download | compiler-rt-1fe2897b928694f85f35e6435c58d277c43c6411.tar.gz |
[LibFuzzer] Try to unbreak the `FuzzerMutate.ShuffleBytes1` unit test.
This test is failing on my Linux box. Just increasing the number of
iterations works around this. The divergence is likely due to
our reliance on `std::shuffle()` which is not guaranteed to have
the same behaviour across platforms.
This is a strong argument for us to implement our own shuffle
function to avoid divergence in behaviour across platforms.
Differential Revision: https://reviews.llvm.org/D45767
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@330390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/tests')
-rw-r--r-- | lib/fuzzer/tests/FuzzerUnittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/tests/FuzzerUnittest.cpp b/lib/fuzzer/tests/FuzzerUnittest.cpp index 97ec3b4bb..3f57a5d60 100644 --- a/lib/fuzzer/tests/FuzzerUnittest.cpp +++ b/lib/fuzzer/tests/FuzzerUnittest.cpp @@ -328,7 +328,7 @@ void TestShuffleBytes(Mutator M, int NumIter) { } TEST(FuzzerMutate, ShuffleBytes1) { - TestShuffleBytes(&MutationDispatcher::Mutate_ShuffleBytes, 1 << 16); + TestShuffleBytes(&MutationDispatcher::Mutate_ShuffleBytes, 1 << 17); } TEST(FuzzerMutate, ShuffleBytes2) { TestShuffleBytes(&MutationDispatcher::Mutate, 1 << 20); |