]> granicus.if.org Git - clang/commitdiff
test: Add the feature "shell". Frontend/dependency-gen.c would be executable with...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 28 Feb 2011 09:41:07 +0000 (09:41 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 28 Feb 2011 09:41:07 +0000 (09:41 +0000)
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

test/Frontend/dependency-gen.c
test/lit.cfg

index bad84938296aa826369c7de0c2bd7e456b066a13..0f8adabc85aa8d22bc88b77c0e7a83821d8fcf01 100644 (file)
@@ -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
index 6567c6d229cbb16d0b2f890b948646cbcf4fb547..8542b7d8d79db7ecf00c0697baf603821c8ec180 100644 (file)
@@ -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')