labath added a comment.

In https://reviews.llvm.org/D49739#1174769, @apolyakov wrote:

> `packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py` test 
> contains `port = 12000 + random.randint(0, 3999)`.


Ok, that's bad. I don't know why the other lldb-mi tests are flaky, but these 
ones are definitely flaky because of that. Let's not emulate that.

The best way to get a port is to have lldb-server/debugserver choose it for 
you. You can do this by passing "0" as the command line port, and using the 
`--pipe` argument to have the stub write out the actual port number it has 
chosen back to you. That way, you're guaranteed to get a free port without any 
races.


https://reviews.llvm.org/D49739



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to