From: Douglas Gregor Date: Fri, 21 Oct 2011 23:37:41 +0000 (+0000) Subject: More speculative test tweaking X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60419fa4e3c210885f0c28355922a59e8ee2f8f0;p=clang More speculative test tweaking git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142701 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/debug.c b/test/Driver/debug.c index 97f00d9b18..a3c343bc83 100644 --- a/test/Driver/debug.c +++ b/test/Driver/debug.c @@ -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).