Port test/Driver/mg.c to use FileCheck instead of fgrep
authorBen Langmuir <blangmuir@apple.com>
Wed, 4 Feb 2015 18:34:26 +0000 (18:34 +0000)
committerBen Langmuir <blangmuir@apple.com>
Wed, 4 Feb 2015 18:34:26 +0000 (18:34 +0000)
Patch by İsmail Dönmez

llvm-svn: 228164

clang/test/Driver/mg.c

index db1a542..82d8a60 100644 (file)
@@ -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"