From 346dfbe2bce57f7d0bb27d24fe3fdd7ae1f50701 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Fri, 20 Jul 2018 20:21:57 +0000 Subject: [FileCheck] Provide an option for FileCheck to dump original input to stderr on failure 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 --- llvm/docs/CommandGuide/FileCheck.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/docs/CommandGuide/FileCheck.rst') diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst index dfa2fd29515..b0324f40463 100644 --- a/llvm/docs/CommandGuide/FileCheck.rst +++ b/llvm/docs/CommandGuide/FileCheck.rst @@ -77,6 +77,10 @@ OPTIONS -verify``. With this option FileCheck will verify that input does not contain warnings not covered by any ``CHECK:`` patterns. +.. option:: --dump-input-on-failure + + When the check fails, dump all of the original input. + .. option:: --enable-var-scope Enables scope for regex variables. -- cgit v1.2.3