aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Fuzzer/test/afl-driver-stderr.test
blob: c0f9c8398c2a118485fb003efa9129ce0a846034 (plain)
1
2
3
4
5
6
7
8
9
10
; Test that not specifying a stderr file isn't broken.
RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
RUN: AFLDriverTest

; Test that specifying an invalid file causes a crash.
RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash AFLDriverTest

; Test that a file is created when specified as the duplicate stderr.
RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t AFLDriverTest
RUN: stat %t