Skip to content

Commit 8780771

Browse files
committedFeb 11, 2019
[lldb] [test] Skip lldb-mi test if LLDB_DISABLE_PYTHON is used
Skip running lldb-mi tests when Python support is disabled. This causes lldb-mi to unconditionally fail, and therefore all the relevant tests fail as well. Differential Revision: https://reviews.llvm.org/D58000 llvm-svn: 353700
1 parent e825ba9 commit 8780771

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
 

‎lldb/lit/helper/toolchain.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def use_lldb_substitutions(config):
5252

5353
llvm_config.add_tool_substitutions(primary_tools,
5454
[config.lldb_tools_dir])
55-
if lldbmi.was_resolved:
55+
# lldb-mi always fails without Python support
56+
if lldbmi.was_resolved and not config.lldb_disable_python:
5657
config.available_features.add('lldb-mi')
5758

5859
def _use_msvc_substitutions(config):

‎lldb/lit/lit.site.cfg.py.in

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ config.python_executable = "@PYTHON_EXECUTABLE@"
1717
config.have_zlib = @LLVM_ENABLE_ZLIB@
1818
config.host_triple = "@LLVM_HOST_TRIPLE@"
1919
config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32
20+
config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
2021

2122
# Support substitution of the tools and libs dirs with user parameters. This is
2223
# used when we can't determine the tool dir at configuration time.

‎lldb/lit/tools/lldb-mi/lit.local.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
if not "lldb-mi" in config.available_features:
2+
config.unsupported = True

0 commit comments

Comments
 (0)
Please sign in to comment.