aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-04-10 21:10:39 +0000
committerReid Kleckner <reid@kleckner.net>2013-04-10 21:10:39 +0000
commit2c5a38e3bc347de64f694671bbb1097bd6544456 (patch)
tree4b202fbf63567ade606ac61ecf48e0d1be0b6b9a /test/Frontend
parent0e7f2bb1810a4e5e62a8e247460cd26f981d0827 (diff)
FileCheck-ify some clang grep tests that use double quotes
The escaping interaction between Python and grep doesn't work on my system. This change fixes the tests for me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/rewrite-macros.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/Frontend/rewrite-macros.c b/test/Frontend/rewrite-macros.c
index bc7479693b..18c50342f4 100644
--- a/test/Frontend/rewrite-macros.c
+++ b/test/Frontend/rewrite-macros.c
@@ -1,17 +1,21 @@
-// RUN: %clang_cc1 -verify -rewrite-macros -o %t %s
+// RUN: %clang_cc1 %s -verify -rewrite-macros -o %t
+// RUN: FileCheck %s < %t
+
+// Any CHECK line comments are included in the output, so we use some extra
+// regex brackets to make sure we don't match the CHECK lines themselves.
#define A(a,b) a ## b
-// RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t
+// CHECK: 12{{ *}}/*A*/ /*(1,2)*/
A(1,2)
-// RUN: grep '/\*_Pragma("mark")\*/' %t
+// CHECK: /*_Pragma("{{mark}}")*/
_Pragma("mark")
-// RUN: grep "//#warning eek" %t
+// CHECK: /*#warning {{eek}}*/
/* expected-warning {{eek}} */ #warning eek
-// RUN: grep "//#pragma mark mark" %t
+// CHECK: //#pragma mark {{mark}}
#pragma mark mark