[Lldb-commits] [lldb] [lldb][test] Set target OS for API tests in case of remote testing (PR #96654)

Vladislav Dzhidzhoev via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 9 05:13:14 PDT 2024


================
@@ -113,6 +130,10 @@ def _get_platform_os(p):
             platform = "openbsd"
         return platform
 
+    # Triple is not available if we're not connected yet
+    if p.GetName() == "remote-linux":
+        return "linux"
+
----------------
dzhidzhoev wrote:

That may be relevant if _get_platform_os is called before the connection is established, or, for example, if it has failed to be established.
But yeah, currently I'm not aware of such use cases. Should it be removed?

https://github.com/llvm/llvm-project/pull/96654


More information about the lldb-commits mailing list