r228164 - Port test/Driver/mg.c to use FileCheck instead of fgrep

Ben Langmuir blangmuir at apple.com
Wed Feb 4 10:34:26 PST 2015


Author: benlangmuir
Date: Wed Feb  4 12:34:26 2015
New Revision: 228164

URL: http://llvm.org/viewvc/llvm-project?rev=228164&view=rev
Log:
Port test/Driver/mg.c to use FileCheck instead of fgrep

Patch by İsmail Dönmez

Modified:
    cfe/trunk/test/Driver/mg.c

Modified: cfe/trunk/test/Driver/mg.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mg.c?rev=228164&r1=228163&r2=228164&view=diff
==============================================================================
--- cfe/trunk/test/Driver/mg.c (original)
+++ cfe/trunk/test/Driver/mg.c Wed Feb  4 12:34:26 2015
@@ -1,5 +1,5 @@
-// RUN: %clang -M -MG -include nonexistent-preinclude.h %s > %t
-// RUN: grep -F nonexistent-preinclude.h %t
-// RUN: grep -F nonexistent-ppinclude.h %t
+// RUN: %clang -M -MG -include nonexistent-preinclude.h %s | FileCheck %s
+// CHECK: nonexistent-preinclude.h
+// CHECK: nonexistent-ppinclude.h
 
 #include "nonexistent-ppinclude.h"






More information about the cfe-commits mailing list