[cfe-commits] r142637 - /cfe/trunk/test/Driver/debug.c
Benjamin Kramer
benny.kra at googlemail.com
Thu Oct 20 23:46:16 PDT 2011
On 21.10.2011, at 06:04, Nick Lewycky <nicholas at mxc.ca> wrote:
> Author: nicholas
> Date: Thu Oct 20 23:04:49 2011
> New Revision: 142637
>
> URL: http://llvm.org/viewvc/llvm-project?rev=142637&view=rev
> Log:
> Try to be exceedingly clever and make this test work properly whether it's run
> under bash or under cmd.exe.
>
> Modified:
> cfe/trunk/test/Driver/debug.c
>
> Modified: cfe/trunk/test/Driver/debug.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/debug.c?rev=142637&r1=142636&r2=142637&view=diff
> ==============================================================================
> --- cfe/trunk/test/Driver/debug.c (original)
> +++ cfe/trunk/test/Driver/debug.c Thu Oct 20 23:04:49 2011
> @@ -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"'
putting "env" in front of the bash syntax worked for me on the Windows buildbots without duplicating everything.
- Ben
More information about the cfe-commits
mailing list