1REQUIRES: linux, x86_64
2RUN: %cpp_compiler %S/KeepSeedTest.cpp -o %t-KeepSeedTest
3
4RUN: rm -rf %t-corpus
5RUN: mkdir %t-corpus
6RUN: echo -n SELECTxFROMxWHERE > %t-corpus/valid-fragments
7
8RUN: not %run %t-KeepSeedTest -keep_seed=1 -seed=1 -runs=3000000 %t-corpus 2>&1 | FileCheck %s
9CHECK: BINGO
10
11RUN: rm -rf %t-corpus-baseline
12RUN: mkdir %t-corpus-baseline
13RUN: echo -n SELECTxFROMxWHERE > %t-corpus-baseline/valid-fragments
14
15# The following checks whether without -keep_seed=1 libFuzzer does not find the
16# crashing input "SELECT FROM WHERE" even with more runs.
17RUN: %run %t-KeepSeedTest -seed=1 -runs=4000000 %t-corpus-baseline -print_final_stats=1
18