Improve test verification from r209172
authorAlp Toker <alp@nuanti.com>
Mon, 19 May 2014 22:56:13 +0000 (22:56 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 19 May 2014 22:56:13 +0000 (22:56 +0000)
llvm-svn: 209175

clang/test/ARCMT/GC-check-warn-nsalloc.m

index ec3cd0c..19a8d3d 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s | not grep warning
+// RUN: %clang_cc1 -arcmt-check -Werror -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s
 // RUN: %clang_cc1 -arcmt-check -Wno-error=arcmt-ns-alloc -triple x86_64-apple-darwin10 -fobjc-gc-only %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
-// RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s | not grep warning
+// RUN: %clang_cc1 -arcmt-check -Werror -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s
 // TODO: Investigate VerifyDiagnosticConsumer failures on these tests when using -verify.
 // rdar://10532541