]> granicus.if.org Git - clang/commitdiff
Make this test unsupported when there is no real 'env' from a real shell.
authorYaron Keren <yaron.keren@gmail.com>
Sat, 9 Aug 2014 21:24:04 +0000 (21:24 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 9 Aug 2014 21:24:04 +0000 (21:24 +0000)
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

test/Driver/darwin-sdkroot.c

index b727fa6bb0ce9e97dacaa232166f266ab54f76bf..8af2965a3a1f90fb5ee768b825f1ac2906050de2 100644 (file)
@@ -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