r244433 - [tests] Remove calls to grep
Filipe Cabecinhas via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 00:01:11 PDT 2015
Author: filcab
Date: Mon Aug 10 02:01:11 2015
New Revision: 244433
URL: http://llvm.org/viewvc/llvm-project?rev=244433&view=rev
Log:
[tests] Remove calls to grep
Modified:
cfe/trunk/test/Index/warning-flags.c
Modified: cfe/trunk/test/Index/warning-flags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/warning-flags.c?rev=244433&r1=244432&r2=244433&view=diff
==============================================================================
--- cfe/trunk/test/Index/warning-flags.c (original)
+++ cfe/trunk/test/Index/warning-flags.c Mon Aug 10 02:01:11 2015
@@ -5,9 +5,9 @@ int *bar(float *f) { return f; }
// RUN: c-index-test -test-load-source-reparse 5 all %s 2>&1|FileCheck -check-prefix=CHECK-BOTH-WARNINGS %s
// RUN: c-index-test -test-load-source all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
// RUN: c-index-test -test-load-source-reparse 5 all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
-// RUN: c-index-test -test-load-source all -w %s 2>&1|not grep warning:
-// RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1|not grep warning:
-// RUN: c-index-test -test-load-source all -w -O4 %s 2>&1|not grep warning:
+// RUN: c-index-test -test-load-source all -w %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
+// RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
+// RUN: c-index-test -test-load-source all -w -O4 %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
// CHECK-BOTH-WARNINGS: warning: control reaches end of non-void function
// CHECK-BOTH-WARNINGS: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
@@ -15,3 +15,4 @@ int *bar(float *f) { return f; }
// CHECK-SECOND-WARNING-NOT:control reaches end of non-void
// CHECK-SECOND-WARNING: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
+// NOWARNINGS-NOT: warning:
More information about the cfe-commits
mailing list