[Lldb-commits] [lldb] [lldb][test] Require Python for a few more tests (PR #199913)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed May 27 02:53:49 PDT 2026
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/199913
None
>From b8f01adfb4292acd9cb01deac1f2b458fac254eb Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at arm.com>
Date: Wed, 27 May 2026 09:21:48 +0000
Subject: [PATCH] [lldb][test] Require Python for a few more tests
---
lldb/test/Shell/Commands/command-dil-diagnostics.test | 1 +
lldb/test/Shell/Commands/command-module-hook-fire.test | 1 +
lldb/test/Shell/Commands/process-attach-dummy.test | 2 ++
lldb/test/Shell/ObjectFile/MachO/section-overflow-binary.test | 2 ++
lldb/unittests/DAP/Handler/DisconnectTest.cpp | 2 +-
5 files changed, 7 insertions(+), 1 deletion(-)
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