aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2014-03-06 21:47:22 +0000
committerAlan Somers <asomers@FreeBSD.org>2014-03-06 21:47:22 +0000
commitc534afcfa589ecde72e46f03d3f736c32f760491 (patch)
tree6edd5ec5d4051a1bcf0abec1e0877031eb20b8e9 /tests
parent8bef2439d337cc9d7283390d8ebd1a0f03311748 (diff)
downloadsrc-c534afcfa589ecde72e46f03d3f736c32f760491.tar.gz
src-c534afcfa589ecde72e46f03d3f736c32f760491.zip
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.
Notes
Notes: svn path=/stable/10/; revision=262871
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/unix_seqpacket_test.c2
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 5b8632de449e..f2904aec060b 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)));