[Lldb-commits] [lldb] e6fe3f4 - [lldb][test] Require Python for a few more tests (#199913)

via lldb-commits lldb-commits at lists.llvm.org
Wed May 27 03:07:46 PDT 2026


Author: David Spickett
Date: 2026-05-27T10:07:40Z
New Revision: e6fe3f4f55ef7219eac36464724f8ff5c0bc4159

URL: https://github.com/llvm/llvm-project/commit/e6fe3f4f55ef7219eac36464724f8ff5c0bc4159
DIFF: https://github.com/llvm/llvm-project/commit/e6fe3f4f55ef7219eac36464724f8ff5c0bc4159.diff

LOG: [lldb][test] Require Python for a few more tests (#199913)

Added: 
    

Modified: 
    lldb/test/Shell/Commands/command-dil-diagnostics.test
    lldb/test/Shell/Commands/command-module-hook-fire.test
    lldb/test/Shell/Commands/process-attach-dummy.test
    lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test
    lldb/unittests/DAP/Handler/DisconnectTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/Commands/command-dil-diagnostics.test b/lldb/test/Shell/Commands/command-dil-diagnostics.test
index e9f017982e43f..5b15cff4e3cd5 100644
--- a/lldb/test/Shell/Commands/command-dil-diagnostics.test
+++ b/lldb/test/Shell/Commands/command-dil-diagnostics.test
@@ -1,5 +1,6 @@
 ## Check DIL error diagnostics output.
 # UNSUPPORTED: target-windows
+# REQUIRES: python
 # RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t
 # RUN: %lldb %t -o "command source -e 0 %s" -o exit 2>&1 | FileCheck %s --strict-whitespace
 settings set target.experimental.use-DIL true

diff  --git a/lldb/test/Shell/Commands/command-module-hook-fire.test b/lldb/test/Shell/Commands/command-module-hook-fire.test
index fd5a113a40569..896eb55f2f717 100644
--- a/lldb/test/Shell/Commands/command-module-hook-fire.test
+++ b/lldb/test/Shell/Commands/command-module-hook-fire.test
@@ -1,4 +1,5 @@
 # Test that module hooks fire when modules are loaded.
+# REQUIRES: python
 #
 # RUN: %clang_host -g %S/Inputs/main.c -o %t
 # RUN: %lldb -b -o 'file %t' \

diff  --git a/lldb/test/Shell/Commands/process-attach-dummy.test b/lldb/test/Shell/Commands/process-attach-dummy.test
index dd592293c29a7..6ae5683f5c81f 100644
--- a/lldb/test/Shell/Commands/process-attach-dummy.test
+++ b/lldb/test/Shell/Commands/process-attach-dummy.test
@@ -12,6 +12,8 @@
 # leaving the main target list empty (target list outputs "No targets.").
 # If the bug is fixed, it successfully creates "target #0: <none>".
 
+# REQUIRES: python
+
 # RUN: %lldb -s %s 2>&1 | FileCheck %s
 
 script lldb.debugger.GetCommandInterpreter().HandleCommand("process attach -p 99999", lldb.SBCommandReturnObject())

diff  --git a/lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test b/lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test
index 76c335f65a76a..4ccfac9975e41 100644
--- a/lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test
+++ b/lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test
@@ -1,3 +1,5 @@
+REQUIRES: python
+
 RUN: %lldb -b %p/Inputs/section-overflow-binary \
 RUN:   -o 'script dwarf = lldb.target.module[0].sections[0]' \
 RUN:   -o 'script section = dwarf.GetSubSectionAtIndex(0)' \

diff  --git a/lldb/unittests/DAP/Handler/DisconnectTest.cpp b/lldb/unittests/DAP/Handler/DisconnectTest.cpp
index 212c5698feea8..b4147b5b0552d 100644
--- a/lldb/unittests/DAP/Handler/DisconnectTest.cpp
+++ b/lldb/unittests/DAP/Handler/DisconnectTest.cpp
@@ -35,7 +35,7 @@ TEST_F(DisconnectRequestHandlerTest, DisconnectTriggersTerminated) {
 }
 
 // Is flaky on Linux, see https://github.com/llvm/llvm-project/issues/154763.
-#ifndef __linux__
+#if LLDB_ENABLE_PYTHON && !defined(__linux__)
 TEST_F(DisconnectRequestHandlerTest, DisconnectTriggersTerminateCommands) {
   CreateDebugger();
 


        


More information about the lldb-commits mailing list