summaryrefslogtreecommitdiff
path: root/lib/fuzzer/tests
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-04-20 06:46:14 +0000
committerDan Liew <dan@su-root.co.uk>2018-04-20 06:46:14 +0000
commit1fe2897b928694f85f35e6435c58d277c43c6411 (patch)
treefbd04fcb79471184d8aa4db3c27b4f3701c26ded /lib/fuzzer/tests
parent023daf3d10db7fe6065eeb810c39109478ada10f (diff)
[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.cpp2
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);