[Lldb-commits] [lldb] [lldb][test] Fix TestTlsGlobals.py for remote Linux runs (PR #181078)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 11 19:15:26 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Igor Kudrin (igorkudrin)
<details>
<summary>Changes</summary>
The dynamic library must be transferred to the server; otherwise, the test will fail because the inferior process will not launch.
---
Full diff: https://github.com/llvm/llvm-project/pull/181078.diff
1 Files Affected:
- (modified) lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py (+2-3)
``````````diff
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")
``````````
</details>
https://github.com/llvm/llvm-project/pull/181078
More information about the lldb-commits
mailing list