summaryrefslogtreecommitdiffstats
path: root/llvm/docs/TestingGuide.rst
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/TestingGuide.rst')
-rw-r--r--llvm/docs/TestingGuide.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst
index f147a9fbd7a..7216c7c838e 100644
--- a/llvm/docs/TestingGuide.rst
+++ b/llvm/docs/TestingGuide.rst
@@ -549,6 +549,13 @@ RUN lines:
``i686-pc-mingw32``. This allows a test to run with a specific ABI without
constraining it to a specific triple.
+**FileCheck-specific substitutions:**
+
+``%ProtectFileCheckOutput``
+ This should precede a ``FileCheck`` call if and only if the call's textual
+ output affects test results. It's usually easy to tell: just look for
+ redirection or piping of the ``FileCheck`` call's stdout or stderr.
+
To add more substituations, look at ``test/lit.cfg`` or ``lit.local.cfg``.
OpenPOWER on IntegriCloud