[Lldb-commits] [lldb] [lldb][test] Fix TestTlsGlobals.py for remote Linux runs (PR #181078)
Igor Kudrin via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 11 19:15:03 PST 2026
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/181078
The dynamic library must be transferred to the server; otherwise, the test will fail because the inferior process will not launch.
>From 6aa6ec091b68eddfa117c54d69bc457c4cb346af Mon Sep 17 00:00:00 2001
From: Igor Kudrin <ikudrin at accesssoftek.com>
Date: Wed, 11 Feb 2026 18:57:34 -0800
Subject: [PATCH] [lldb][test] Fix TestTlsGlobals.py for remote Linux runs
The dynamic library must be transferred to the server; otherwise, the
test will fail because the inferior process will not launch.
---
lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py b/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
index dad2b19a67170..ed696bca54ab4 100644
--- a/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
+++ b/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
@@ -46,14 +46,13 @@ def test(self):
self.build()
exe = self.getBuildArtifact("a.out")
target = self.dbg.CreateTarget(exe)
- if self.platformIsDarwin():
- self.registerSharedLibrariesWithTarget(target, ["liba.dylib"])
+ env = self.registerSharedLibrariesWithTarget(target, ["a"])
line1 = line_number("main.c", "// thread breakpoint")
lldbutil.run_break_set_by_file_and_line(
self, "main.c", line1, num_expected_locations=1, loc_exact=True
)
- self.runCmd("run", RUN_SUCCEEDED)
+ target.LaunchSimple(None, env, self.get_process_working_directory())
# The stop reason of the thread should be breakpoint.
self.runCmd("process status", "Get process status")
More information about the lldb-commits
mailing list