Try to be exceedingly clever and make this test work properly whether it's run

under bash or under cmd.exe.

llvm-svn: 142637
This commit is contained in:
Nick Lewycky 2011-10-21 04:04:49 +00:00
parent 60060d6f8f
commit 90a47b127b
1 changed files with 1 additions and 0 deletions

View 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