test_eagain_*_* should've been using nonblocking sockets instead of

blocking sockets.  The error was not exposed as long as the kernel
suffered from PR kern/185812.  Now corrected, these tests pass on
DragonFlyBSD 3.6.0.

PR:		kern/185812
Sponsored by:	Spectra Logic Corporation
MFC after:	2 weeks
This commit is contained in:
Alan Somers 2014-02-17 22:06:52 +00:00
parent e4dfeb5bb1
commit b9a9db10d4

View File

@ -136,7 +136,7 @@ test_eagain(size_t sndbufsize, size_t rcvbufsize)
ssize_t ssize, rsize;
/* setup the socket pair */
do_socketpair(sv);
do_socketpair_nonblocking(sv);
/* Setup the buffers */
ATF_REQUIRE_EQ(0, setsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, &sndbufsize,
sizeof(sndbufsize)));