1RUN: %cpp_compiler %S/CustomMutatorTest.cpp -o %t-CustomMutatorTest
2RUN: not %run %t-CustomMutatorTest 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutator
3LLVMFuzzerCustomMutator: INFO: found LLVMFuzzerCustomMutator
4LLVMFuzzerCustomMutator: In LLVMFuzzerCustomMutator
5LLVMFuzzerCustomMutator: {{.*}} lim: 4096 {{.*}}
6LLVMFuzzerCustomMutator: BINGO
7
8# len_control is disabled for custom mutators by default, test that it can be enabled.
9RUN: not %run %t-CustomMutatorTest -len_control=100 2>&1 | FileCheck %s --check-prefix=LLVMFuzzerCustomMutatorWithLenControl
10LLVMFuzzerCustomMutatorWithLenControl: INFO: found LLVMFuzzerCustomMutator
11LLVMFuzzerCustomMutatorWithLenControl: In LLVMFuzzerCustomMutator
12LLVMFuzzerCustomMutatorWithLenControl: {{.*}} lim: {{[1-9][0-9]?}} {{.*}}
13LLVMFuzzerCustomMutatorWithLenControl: BINGO
14