MSYS transforms '/' to 'X:/mingwroot/'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172598
91177308-0d34-0410-b5e6-
96231b3b80d8
// CHECK-NONROOT: clang
// CHECK-NONROOT: "-cc1"
// CHECK-NONROOT-NOT: "-isysroot"
+//
+// It doesn't make sense on msys bash.
+// REQUIRES: shell-preserves-root
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')