]> git.ipfire.org Git - thirdparty/chrony.git/commit
test: fix socket unit test to use non-blocking accepted sockets master
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Aug 2025 07:33:34 +0000 (09:33 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Aug 2025 07:39:26 +0000 (09:39 +0200)
commit120bf44989391164c924e97d3142dc1352ab7970
tree1aebf569243560841c1a8588008df31411263a66
parent9e8541e3c4c89bfb7a60b404f646fab57c69ce59
test: fix socket unit test to use non-blocking accepted sockets

SCK_AcceptConnection() always returns a non-blocking socket. Clear the
O_NONBLOCK flag in the socket unit test, which relies on blocking, to
avoid failures.

Reported-by: Matthias Andree <matthias.andree@gmx.de>
test/unit/socket.c