mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
56b2870853
The option can be either set using environment variable (e.g. env FILECHECK_DUMP_INPUT_ON_FAILURE=1 ninja check-fuzzer) or with a FileCheck flag. This can be extremely useful for debugging, cf. https://groups.google.com/forum/#!topic/llvm-dev/kLrzg8OM_h8 for discussion. Differential Revision: https://reviews.llvm.org/D49328 llvm-svn: 337609
18 lines
775 B
Plaintext
18 lines
775 B
Plaintext
; RUN: not FileCheck -input-file %s %s --check-prefix=CHECK1 --match-full-lines --dump-input-on-failure 2>&1 | FileCheck %s --check-prefix=CHECKERROR --match-full-lines
|
|
; RUN: env FILECHECK_DUMP_INPUT_ON_FAILURE=1 not FileCheck -input-file %s %s --check-prefix=CHECK1 --match-full-lines 2>&1 | FileCheck %s --check-prefix=CHECKERROR --match-full-lines
|
|
; RUN: env FILECHECK_DUMP_INPUT_ON_FAILURE=1 not FileCheck -input-file %s %s --check-prefix=CHECK1 --match-full-lines --dump-input-on-failure=0 2>&1 | FileCheck %s --check-prefix=CHECKERRORNOVERBOSE --match-full-lines
|
|
|
|
hello
|
|
world
|
|
|
|
; CHECK1: ciao
|
|
; CHECK1-NEXT: world
|
|
|
|
; CHECKERROR: Full input was:
|
|
; CHECKERROR-NEXT: <<<<<<
|
|
; CHECKERROR: hello
|
|
; CHECKERROR: world
|
|
; CHECKERROR: >>>>>>
|
|
|
|
; CHECKERRORNOVERBOSE-NOT: <<<<<<
|