[llvm] r177403 - [docs] Remove incorrect information about lit.
Sean Silva
silvas at purdue.edu
Tue Mar 19 08:22:02 PDT 2013
Author: silvas
Date: Tue Mar 19 10:22:02 2013
New Revision: 177403
URL: http://llvm.org/viewvc/llvm-project?rev=177403&view=rev
Log:
[docs] Remove incorrect information about lit.
Lit does support redirects in the 2>&1 style.
Modified:
llvm/trunk/docs/TestingGuide.rst
Modified: llvm/trunk/docs/TestingGuide.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TestingGuide.rst?rev=177403&r1=177402&r2=177403&view=diff
==============================================================================
--- llvm/trunk/docs/TestingGuide.rst (original)
+++ llvm/trunk/docs/TestingGuide.rst Tue Mar 19 10:22:02 2013
@@ -224,16 +224,7 @@ Below is an example of legal RUN lines i
; RUN: diff %t1 %t2
As with a Unix shell, the RUN lines permit pipelines and I/O
-redirection to be used. However, the usage is slightly different than
-for Bash. In general, it's useful to read the code of other tests to figure out
-what you can use in yours. The major differences are:
-
-- You can't do ``2>&1``. That will cause :program:`lit` to write to a file
- named ``&1``. Usually this is done to get stderr to go through a pipe. You
- can do that with ``|&`` so replace this idiom:
- ``... 2>&1 | FileCheck`` with ``... |& FileCheck``
-- You can only redirect to a file, not to another descriptor and not
- from a here document.
+redirection to be used.
There are some quoting rules that you must pay attention to when writing
your RUN lines. In general nothing needs to be quoted. :program:`lit` won't
More information about the llvm-commits
mailing list