OSDN Git Service

tests/tcg/linux-test: Fix random hangs in test_socket
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 25 Jul 2022 14:42:51 +0000 (16:42 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 1 Aug 2022 05:27:56 +0000 (07:27 +0200)
commitb9e6074fc5b429b1e956e9c60db7e284a91e0f3d
tree3e79460a3c96069330f82a93990fdefe83fdd91b
parent3916603e0c1d909e14e09d5ebcbdaa9c9e21adf3
tests/tcg/linux-test: Fix random hangs in test_socket

test_socket hangs randomly in connect(), especially when run without
qemu. Apparently the reason is that linux started treating backlog
value of 0 literally instead of rounding it up since v4.4 (commit
ef547f2ac16b).

So set it to 1 instead.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20220725144251.192720-1-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/tcg/multiarch/linux/linux-test.c