From ab7a6e6b4e7e898832555d1a72d4ee56806af7c2 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Thu, 12 Feb 2026 07:42:39 -0800 Subject: [PATCH] [lldb][test] Fix TestTlsGlobals.py for remote Linux runs (#181078) 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 dad2b19a6717..ed696bca54ab 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 @@ class TlsGlobalTestCase(TestBase): 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")