aboutsummaryrefslogtreecommitdiff
path: root/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
commit33b3d2a5b6bcdd23cbb1c8b828dd43c1aa4b5825 (patch)
treea1464776d2de0cf9630ae343d6e14b457fc67f6f /test/Driver/debug.c
parent9bc2c6e3b49523029f54596501cc1f3f2ebcaec2 (diff)
Switch tests from grep to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/debug.c')
-rw-r--r--test/Driver/debug.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Driver/debug.c b/test/Driver/debug.c
index 742a1d8a00..97f00d9b18 100644
--- a/test/Driver/debug.c
+++ b/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.