[cfe-commits] r172598 - in /cfe/trunk/test: Driver/darwin-sdkroot.c lit.cfg

NAKAMURA Takumi geek4civic at gmail.com
Tue Jan 15 22:10:16 PST 2013


Author: chapuni
Date: Wed Jan 16 00:10:16 2013
New Revision: 172598

URL: http://llvm.org/viewvc/llvm-project?rev=172598&view=rev
Log:
clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce the feature "shell-preserves-root".

MSYS transforms '/' to 'X:/mingwroot/'.

Modified:
    cfe/trunk/test/Driver/darwin-sdkroot.c
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Driver/darwin-sdkroot.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/darwin-sdkroot.c?rev=172598&r1=172597&r2=172598&view=diff
==============================================================================
--- cfe/trunk/test/Driver/darwin-sdkroot.c (original)
+++ cfe/trunk/test/Driver/darwin-sdkroot.c Wed Jan 16 00:10:16 2013
@@ -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

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=172598&r1=172597&r2=172598&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Wed Jan 16 00:10:16 2013
@@ -218,6 +218,10 @@
 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')





More information about the cfe-commits mailing list