1 RUN: %no_fuzzer_cpp_compiler -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
3 ; Test that not specifying a stderr file isn't broken.
4 RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
7 ; Test that specifying an invalid file causes a crash.
8 RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %t-AFLDriverTest
10 ; Test that a file is created when specified as the duplicate stderr.
11 RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %t-AFLDriverTest