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/Misc/diag-mapping2.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/Misc/diag-mapping2.c')
| -rw-r--r-- | clang/test/Misc/diag-mapping2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Misc/diag-mapping2.c b/clang/test/Misc/diag-mapping2.c index bc5a0872e7c..c4ade074cb0 100644 --- a/clang/test/Misc/diag-mapping2.c +++ b/clang/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:" |

