From: Filipe Cabecinhas Date: Mon, 10 Aug 2015 07:01:11 +0000 (+0000) Subject: [tests] Remove calls to grep X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b16220e234c6028739a5186f3e9c39fa678b227;p=clang [tests] Remove calls to grep git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244433 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/warning-flags.c b/test/Index/warning-flags.c index 955d68c754..af789c0443 100644 --- a/test/Index/warning-flags.c +++ b/test/Index/warning-flags.c @@ -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: