diff options
author | Dan Liew <dan@su-root.co.uk> | 2016-06-15 01:40:02 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2016-06-15 01:40:02 +0000 |
commit | c4989d27b581a67c3a92be8e7b5005beae90e5c6 (patch) | |
tree | 22bf2559d2b661f9bb82b935880f1c72d39f4992 /llvm/lib/Fuzzer/test/FuzzerUnittest.cpp | |
parent | 3277a05fcfddae175ff8421924c4c630565ea4a1 (diff) | |
download | bcm5719-llvm-c4989d27b581a67c3a92be8e7b5005beae90e5c6.tar.gz bcm5719-llvm-c4989d27b581a67c3a92be8e7b5005beae90e5c6.zip |
[LibFuzzer] Fix ``FuzzerMutate.ShuffleBytes2`` unit test on OSX.
The ``FuzzerMutate.ShuffleBytes2`` unit test was failing on
OSX due to the implementation of ``std::random_shuffle()``
being different between libcxx and libstdc++.
@kcc has decided (see http://reviews.llvm.org/D21218) it is acceptable
for there to be different mutation behavior on different platforms so
this commit just adjusts the test to perform the minimum number of
iterations (that is a power of 2) to see all the mutations the unit test
is looking for.
Differential Revision: http://reviews.llvm.org/D21359
llvm-svn: 272743
Diffstat (limited to 'llvm/lib/Fuzzer/test/FuzzerUnittest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/FuzzerUnittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/FuzzerUnittest.cpp b/llvm/lib/Fuzzer/test/FuzzerUnittest.cpp index 36d13a0346d..5b6251b6e96 100644 --- a/llvm/lib/Fuzzer/test/FuzzerUnittest.cpp +++ b/llvm/lib/Fuzzer/test/FuzzerUnittest.cpp @@ -259,7 +259,7 @@ TEST(FuzzerMutate, ShuffleBytes1) { TestShuffleBytes(&MutationDispatcher::Mutate_ShuffleBytes, 1 << 16); } TEST(FuzzerMutate, ShuffleBytes2) { - TestShuffleBytes(&MutationDispatcher::Mutate, 1 << 19); + TestShuffleBytes(&MutationDispatcher::Mutate, 1 << 20); } void TestAddWordFromDictionary(Mutator M, int NumIter) { |