aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Frontend/dependency-gen.c3
-rw-r--r--test/lit.cfg4
2 files changed, 6 insertions, 1 deletions
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')