From: Yaron Keren Date: Sat, 9 Aug 2014 21:24:04 +0000 (+0000) Subject: Make this test unsupported when there is no real 'env' from a real shell. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16622ac30ea24f1b708b7b4721b3edb09116b293;p=clang Make this test unsupported when there is no real 'env' from a real shell. While the test was already requiring shell-preserves-root (such as the internal shell), it wasn't aware that the MSYS 1.0 env command knows how to expand root by itself! From cmd.exe try: env SDKROOT=/ cmd //c echo %SDKROOT% And get: C:/MINGW/MSYS/1.0 To be certain we have a good 'env' program the test now requires a shell. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215298 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/darwin-sdkroot.c b/test/Driver/darwin-sdkroot.c index b727fa6bb0..8af2965a3a 100644 --- a/test/Driver/darwin-sdkroot.c +++ b/test/Driver/darwin-sdkroot.c @@ -33,3 +33,9 @@ // // It doesn't make sense on msys bash. // REQUIRES: shell-preserves-root +// Even running under cmd.exe and not the msys shell, the msys 1.0 env +// command will *not* preserve root, expanding / into C:/MINGW/MSYS/1.0. +// To see, from the command prompt of cmd.exe run: +// env SDKROOT=/ cmd //c echo %SDKROOT% +// To be sure we have real env program from a real shell and not the MSYS one: +// REQUIRES: shell