summaryrefslogtreecommitdiff
path: root/test/Misc/diag-mapping2.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-04 16:16:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-04 16:16:58 +0000
commit96e7813f08c6adf1d8657b0da86741b54e850fd7 (patch)
treed0e93406ffb173f5a8f55f9e9cd62c09e6dd7b40 /test/Misc/diag-mapping2.c
parent3c7511a44d20d0fd9e287747eb58a00215c57533 (diff)
downloadclang-96e7813f08c6adf1d8657b0da86741b54e850fd7.tar.gz
Add 'not' to commands that are expected to fail.
This is at least good documentation, but also opens the possibility of using pipefail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Misc/diag-mapping2.c')
-rw-r--r--test/Misc/diag-mapping2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Misc/diag-mapping2.c b/test/Misc/diag-mapping2.c
index bc5a0872e7..c4ade074cb 100644
--- a/test/Misc/diag-mapping2.c
+++ b/test/Misc/diag-mapping2.c
@@ -6,10 +6,10 @@
// RUN: %clang_cc1 %s -Wno-#warnings 2>&1 | not grep diagnostic
// -Werror can map all warnings to error.
-// RUN: %clang_cc1 %s -Werror 2>&1 | grep "error:"
+// RUN: not %clang_cc1 %s -Werror 2>&1 | grep "error:"
// -Werror can map this one warning to error.
-// RUN: %clang_cc1 %s -Werror=#warnings 2>&1 | grep "error:"
+// RUN: not %clang_cc1 %s -Werror=#warnings 2>&1 | grep "error:"
// -Wno-error= overrides -Werror. rdar://3158301
// RUN: %clang_cc1 %s -Werror -Wno-error=#warnings 2>&1 | grep "warning:"