]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/fuzzer/afl-driver-stderr.test
New upstream version 1.25.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / test / fuzzer / afl-driver-stderr.test
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
2
3 ; Test that not specifying a stderr file isn't broken.
4 RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
5 RUN: %t-AFLDriverTest
6
7 ; Test that specifying an invalid file causes a crash.
8 RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %t-AFLDriverTest
9
10 ; Test that a file is created when specified as the duplicate stderr.
11 RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %t-AFLDriverTest
12 RUN: stat %t