forked from OSchip/llvm-project
13 lines
604 B
Plaintext
13 lines
604 B
Plaintext
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
|
|
|
|
; Test that not specifying a stderr file isn't broken.
|
|
RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
|
|
RUN: %t-AFLDriverTest
|
|
|
|
; Test that specifying an invalid file causes a crash.
|
|
RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %t-AFLDriverTest
|
|
|
|
; Test that a file is created when specified as the duplicate stderr.
|
|
RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %t-AFLDriverTest
|
|
RUN: stat %t
|