]> 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:39:41 +0000 (22:39 +0100)
commit82052a3947fe4070a0570decb94373d7215fa437
treefb32f39c87e56af6e0e906713f7a96181e8b9d4d
parente3d8450d4ab57b938bee499ca39af959d1717704
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