From 6c8127cc73caa9f188d06da0151fa3b9e32a71de Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 16 Jan 2013 06:10:16 +0000 Subject: [PATCH] clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce the feature "shell-preserves-root". MSYS transforms '/' to 'X:/mingwroot/'. llvm-svn: 172598 --- clang/test/Driver/darwin-sdkroot.c | 3 +++ clang/test/lit.cfg | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/clang/test/Driver/darwin-sdkroot.c b/clang/test/Driver/darwin-sdkroot.c index f463f4a..b727fa6 100644 --- a/clang/test/Driver/darwin-sdkroot.c +++ b/clang/test/Driver/darwin-sdkroot.c @@ -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 diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index fae5fa0..f22b037 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -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') -- 2.7.4