From f5ea88b8ab8b9817b73775f8098791f86c14a1be Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 28 Feb 2011 09:41:07 +0000 Subject: [PATCH] test: Add the feature "shell". Frontend/dependency-gen.c would be executable with shell. The feature "shell" is implemented in llvm/test. llvm-svn: 126646 --- clang/test/Frontend/dependency-gen.c | 3 ++- clang/test/lit.cfg | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/clang/test/Frontend/dependency-gen.c b/clang/test/Frontend/dependency-gen.c index bad84938296a..0f8adabc85aa 100644 --- a/clang/test/Frontend/dependency-gen.c +++ b/clang/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/clang/test/lit.cfg b/clang/test/lit.cfg index 6567c6d229cb..8542b7d8d79d 100644 --- a/clang/test/lit.cfg +++ b/clang/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')