diff options
author | asomers <asomers@FreeBSD.org> | 2014-03-06 21:47:22 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2014-03-06 21:47:22 +0000 |
commit | ca8eab65088e37b13a44110ebb254470c3043a96 (patch) | |
tree | 6edd5ec5d4051a1bcf0abec1e0877031eb20b8e9 /tests/sys/kern/unix_seqpacket_test.c | |
parent | 59b6242e909c7e020d7903a27847e2a465486a45 (diff) | |
download | FreeBSD-src-ca8eab65088e37b13a44110ebb254470c3043a96.zip FreeBSD-src-ca8eab65088e37b13a44110ebb254470c3043a96.tar.gz |
MFC r262133
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.
Diffstat (limited to 'tests/sys/kern/unix_seqpacket_test.c')
-rw-r--r-- | tests/sys/kern/unix_seqpacket_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c index 5b8632d..f2904ae 100644 --- a/tests/sys/kern/unix_seqpacket_test.c +++ b/tests/sys/kern/unix_seqpacket_test.c @@ -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))); |