diff options
Diffstat (limited to 'test/Misc/diag-mapping2.c')
-rw-r--r-- | test/Misc/diag-mapping2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Misc/diag-mapping2.c b/test/Misc/diag-mapping2.c index bc5a087..c4ade07 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:" |