[Lldb-commits] [lldb] ab7a6e6 - [lldb][test] Fix TestTlsGlobals.py for remote Linux runs (#181078)

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 12 07:42:57 PST 2026


Author: Igor Kudrin
Date: 2026-02-12T07:42:39-08:00
New Revision: ab7a6e6b4e7e898832555d1a72d4ee56806af7c2

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

LOG: [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.

Added: 
    

Modified: 
    lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py

Removed: 
    


################################################################################
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