[Lldb-commits] [lldb] [lldb] add --platform-available-ports option to the dotest.py (PR #112555)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 28 08:12:29 PDT 2025


================
@@ -185,6 +185,8 @@ def setUpServerLogging(self, is_llgs):
             ]
 
     def get_next_port(self):
+        if available_ports := self.getPlatformAvailablePorts():
+            return int(random.choice(available_ports))
----------------
DavidSpickett wrote:

Once a test chooses a port, other tests can still choose that port. Is that a problem?

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


More information about the lldb-commits mailing list