]> granicus.if.org Git - clang/commitdiff
clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce the...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Jan 2013 06:10:16 +0000 (06:10 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Jan 2013 06:10:16 +0000 (06:10 +0000)
MSYS transforms '/' to 'X:/mingwroot/'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172598 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/darwin-sdkroot.c
test/lit.cfg

index f463f4a2797b0c603a594775e1a97d58d4388c6b..b727fa6bb0ce9e97dacaa232166f266ab54f76bf 100644 (file)
@@ -30,3 +30,6 @@
 // CHECK-NONROOT: clang
 // CHECK-NONROOT: "-cc1"
 // CHECK-NONROOT-NOT: "-isysroot"
+//
+// It doesn't make sense on msys bash.
+// REQUIRES: shell-preserves-root
index fae5fa099e12969beb30c9801e4511d12219bf63..f22b0376b4d8ce850118b85706db64cf990cafa9 100644 (file)
@@ -218,6 +218,10 @@ if platform.system() not in ['FreeBSD']:
 if platform.system() not in ['Windows'] or lit.getBashPath() != '':
     config.available_features.add('shell')
 
+# Exclude MSYS due to transforming '/' to 'X:/mingwroot/'.
+if not platform.system() in ['Windows'] or lit.getBashPath() == '':
+    config.available_features.add('shell-preserves-root')
+
 # For tests that require Darwin to run.
 if platform.system() in ['Darwin']:
     config.available_features.add('system-darwin')