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
//
// 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