1 # AFL doesn't work on Windows. No reason to test the driver.
2 UNSUPPORTED: target={{.*(freebsd|windows).*}}
4 RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
6 ; Test that not specifying a stderr file isn't broken.
7 RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
8 RUN: %run %t-AFLDriverTest
10 ; Test that specifying an invalid file causes a crash.
11 RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %run %t-AFLDriverTest
13 ; Test that a file is created when specified as the duplicate stderr.
14 RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %run %t-AFLDriverTest