]> 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)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2023 23:07:03 +0000 (16:07 -0700)
commit4743071e651235e4ddafc349bd2c003043c01778
tree7be6eeb3809153c3d60d8c966d1d8833bc49ffaa
parentd4e23393454bfa69a0281f9eadcd74a813f5d570
test-pselect, test-select: use different ports

I have served 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