]> granicus.if.org Git - clang/commitdiff
More speculative test tweaking
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Oct 2011 23:37:41 +0000 (23:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Oct 2011 23:37:41 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142701 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/debug.c

index 97f00d9b18a13586d294c3d16798cf80cee78cdc..a3c343bc83d2a657a566f06c32cbe76be888246d 100644 (file)
@@ -2,10 +2,7 @@
 // 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.
+// CHECK-FOO: {{"-fdebug-compilation-dir" ".*foo"}}
 
 // "PWD=/foo gcc" wouldn't necessarily work. You would need to pick a different
 // path to the same directory (try a symlink).