]> granicus.if.org Git - clang/commitdiff
Try to be exceedingly clever and make this test work properly whether it's run
authorNick Lewycky <nicholas@mxc.ca>
Fri, 21 Oct 2011 04:04:49 +0000 (04:04 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 21 Oct 2011 04:04:49 +0000 (04:04 +0000)
under bash or under cmd.exe.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142637 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/debug.c

index 66b2f0d5db2e56361b7300deea440c2c01a4b896..e7830b961ea36aa05e75cfddc5401854cefd52c8 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: cd %S && %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "'%S'"'
+// RUN: (sv PWD=/foo && %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "/foo"') || \
 // RUN: PWD=/foo %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "/foo"'
 
 // This test uses grep instead of FileCheck so that we get %S -> dirname