From: NAKAMURA Takumi Date: Mon, 28 Feb 2011 09:41:07 +0000 (+0000) Subject: test: Add the feature "shell". Frontend/dependency-gen.c would be executable with... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef34d774d8fa1bf3c315b2bc9419f77a0458d810;p=clang test: Add the feature "shell". Frontend/dependency-gen.c would be executable with shell. The feature "shell" is implemented in llvm/test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126646 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Frontend/dependency-gen.c b/test/Frontend/dependency-gen.c index bad8493829..0f8adabc85 100644 --- a/test/Frontend/dependency-gen.c +++ b/test/Frontend/dependency-gen.c @@ -8,7 +8,8 @@ // RUN: grep 'dependency-gen.c' %t.d // PR8974 -// XFAIL: win32 +// REQUIRES: shell +// "cd %t.dir" requires shell. // RUN: rm -rf %t.dir // RUN: mkdir -p %t.dir/a/b // RUN: echo > %t.dir/a/b/x.h diff --git a/test/lit.cfg b/test/lit.cfg index 6567c6d229..8542b7d8d7 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -166,3 +166,7 @@ config.substitutions.append( # Set available features we allow tests to conditionalize on. if platform.system() != 'Windows': config.available_features.add('crash-recovery') + +# Shell execution +if platform.system() not in ['Windows'] or lit.getBashPath() != '': + config.available_features.add('shell')