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