diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2012-07-02 12:23:19 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2012-07-02 12:23:19 +0000 |
| commit | 0a4a26136597a1fe4332732ccdf7e2916dc63d51 (patch) | |
| tree | 4dcb24c6e48f34f38b050d78665377e28583babf /llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll | |
| parent | ae00a80869dcfa5f80439ef53dbce665659103f6 (diff) | |
| download | bcm5719-llvm-0a4a26136597a1fe4332732ccdf7e2916dc63d51.tar.gz bcm5719-llvm-0a4a26136597a1fe4332732ccdf7e2916dc63d51.zip | |
Make tests which first provide a negative assertion via 'not', then
a pipeline, and then a positive assertion via grep, use two RUN lines
instead.
Supporting these complex ideas of 'success' and 'failure' across
multiple stages of a pipeline is brittle in the shell world, and would
block switching to ShTest format; it only worked due to contrivances
introduced by the TclTest format.
Writing this as two separate RUN lines seems clearer in any event.
This is another step toward completely removing TclTests from lit.
llvm-svn: 159524
Diffstat (limited to 'llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll')
| -rw-r--r-- | llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll b/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll index fa6b807709e..dddbdb1c470 100644 --- a/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll +++ b/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll @@ -1,4 +1,5 @@ -; RUN: not llvm-as < %s >/dev/null |& grep {struct initializer doesn't match struct element type} +; RUN: not llvm-as < %s >/dev/null 2> %t +; RUN: grep "struct initializer doesn't match struct element type" %t ; Test the case of a misformed constant initializer ; This should cause an assembler error, not an assertion failure! constant { i32 } { float 1.0 } |

