summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-21 23:20:41 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-21 23:20:41 +0000
commit0a92de06f013da0dccdd10c40f44433c16f2725f (patch)
treef2550b5311f465a7b00cf7c1f88840a45c0bcc67 /clang/test/Driver/debug.c
parent7c6d7b83c1fe201fb2c0d4b75705aa133bd211d3 (diff)
downloadbcm5719-llvm-0a92de06f013da0dccdd10c40f44433c16f2725f.tar.gz
bcm5719-llvm-0a92de06f013da0dccdd10c40f44433c16f2725f.zip
Switch tests from grep to FileCheck
llvm-svn: 142699
Diffstat (limited to 'clang/test/Driver/debug.c')
-rw-r--r--clang/test/Driver/debug.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Driver/debug.c b/clang/test/Driver/debug.c
index 742a1d8a007..97f00d9b18a 100644
--- a/clang/test/Driver/debug.c
+++ b/clang/test/Driver/debug.c
@@ -1,5 +1,8 @@
-// RUN: cd %S && %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "'%S'"'
-// RUN: env PWD=/foo %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "/foo"'
+// RUN: cd %S && %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-PWD %s
+// CHECK-PWD: {{"-fdebug-compilation-dir" ".*Driver.*"}}
+
+// RUN: env PWD=/foo %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-FOO %s
+// CHECK-FOO: "-fdebug-compilation-dir" "/foo"
// This test uses grep instead of FileCheck so that we get %S -> dirname
// substitution.
OpenPOWER on IntegriCloud