]> Savannah Git Hosting - gnulib.git/commit
test-pselect, test-select: use different ports
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2023 23:06:34 +0000 (16:06 -0700)
committerBruno Haible <bruno@clisp.org>
Wed, 22 Mar 2023 21:52:18 +0000 (22:52 +0100)
commitc010c8f73409e97171f8c8ba75039ad42cfafe56
treea0d566db62804503f751cd5eba1a00e32cb20ed0
parentb5ffaa99ac890d44f61d1a9f3c0f443782523126
test-pselect, test-select: use different ports

I have observed rare and hard-to-reproduce problems with the GNU
grep release candidate with ‘make -j5 check’ on Fedora 37 x86-64.
One possibility is that test-pselect and test-select interfere
with each other somehow when run simultaneously, as they use the
same port.  Work around this possibility by using different ports
from each other, and from test-poll (which also uses 12345).
Of course it’d be better if all these tests used system-assigned
ports, but I assume that’d take more work.
* tests/test-pselect.c, tests/test-select.c (TEST_PORT): New macro.
* tests/test-select.h (TEST_PORT): Remove.
ChangeLog
tests/test-pselect.c
tests/test-select.c
tests/test-select.h