diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 16:16:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 16:16:58 +0000 |
commit | 925213b0fa3f9bbbe949326bb89a8d774c05994b (patch) | |
tree | 5de754b11dc2a3f49f4f5017b05ac73b4cfdc656 /clang/test/Index/pch-with-errors.c | |
parent | 18ce7e476128320cd8689090025af054bfe900f5 (diff) | |
download | bcm5719-llvm-925213b0fa3f9bbbe949326bb89a8d774c05994b.tar.gz bcm5719-llvm-925213b0fa3f9bbbe949326bb89a8d774c05994b.zip |
Add 'not' to commands that are expected to fail.
This is at least good documentation, but also opens the possibility of
using pipefail.
llvm-svn: 185652
Diffstat (limited to 'clang/test/Index/pch-with-errors.c')
-rw-r--r-- | clang/test/Index/pch-with-errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/pch-with-errors.c b/clang/test/Index/pch-with-errors.c index 2d396134e5f..5c94a8a8e4d 100644 --- a/clang/test/Index/pch-with-errors.c +++ b/clang/test/Index/pch-with-errors.c @@ -37,8 +37,8 @@ void foo(void) { // CHECK-INDEX: [indexDeclaration]: kind: function | name: foo // CHECK-INDEX: [indexEntityReference]: kind: function | name: erroneous -// RUN: %clang -fsyntax-only %s -include %t.h 2>&1 | FileCheck -check-prefix=PCH-ERR %s +// RUN: not %clang -fsyntax-only %s -include %t.h 2>&1 | FileCheck -check-prefix=PCH-ERR %s // PCH-ERR: error: PCH file contains compiler errors -// RUN: c-index-test -write-pch %t.pch foobar.c 2>&1 | FileCheck -check-prefix=NONEXISTENT %s +// RUN: not c-index-test -write-pch %t.pch foobar.c 2>&1 | FileCheck -check-prefix=NONEXISTENT %s // NONEXISTENT: Unable to load translation unit |