forked from OSchip/llvm-project
Fix the detection of the shell feature and disable some tests when its not present
llvm-svn: 264912
This commit is contained in:
parent
4f88914c5b
commit
750e76d245
|
@ -1,3 +1,9 @@
|
|||
# There is some bad quoting interaction between lit's internal shell, which is
|
||||
# implemented in Python, and the Cygwin implementations of the Unix utilities.
|
||||
# Avoid running these tests on Windows for now by requiring a real shell.
|
||||
|
||||
# REQUIRES: shell
|
||||
|
||||
# REQUIRES: x86
|
||||
# RUN: mkdir -p %t.dir
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
# There is some bad quoting interaction between lit's internal shell, which is
|
||||
# implemented in Python, and the Cygwin implementations of the Unix utilities.
|
||||
# Avoid running these tests on Windows for now by requiring a real shell.
|
||||
|
||||
# REQUIRES: shell
|
||||
|
||||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd \
|
||||
|
|
|
@ -188,7 +188,7 @@ if lit_config.useValgrind:
|
|||
config.target_triple += '-vg'
|
||||
|
||||
# Shell execution
|
||||
if platform.system() not in ['Windows'] or lit_config.getBashPath() != '':
|
||||
if execute_external:
|
||||
config.available_features.add('shell')
|
||||
|
||||
# Running on Darwin OS
|
||||
|
|
Loading…
Reference in New Issue