================
@@ -343,6 +343,22 @@ def get_target_byte_order(self):
target = self.dbg.CreateTarget(inferior_exe_path)
return target.GetByteOrder()
+ def is_port_opened(self):
+ connect_port = self.port
+
+ err, retcode, cmd_output = self.run_platform_command(f"netstat -ltn |
grep {connect_port} | grep LISTEN")
----------------
labath wrote:
That may be true, but I don't think its a reason to make things worse,
particularly if we don't understand why does this work. I'll also note that the
code you point to in a block of code that does not execute on darwin (the other
main user of these tests) while this code does.
https://github.com/llvm/llvm-project/pull/127100
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits