• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AFL doesn't work on Windows. No reason to test the driver.
2UNSUPPORTED: freebsd, windows
3XFAIL: ios
4RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
5
6; Test that not specifying a stderr file isn't broken.
7RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
8RUN: %run %t-AFLDriverTest
9
10; Test that specifying an invalid file causes a crash.
11RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %run %t-AFLDriverTest
12
13; Test that a file is created when specified as the duplicate stderr.
14RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %run %t-AFLDriverTest
15RUN: stat %t
16