summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2014-02-17 22:06:52 +0000
committerasomers <asomers@FreeBSD.org>2014-02-17 22:06:52 +0000
commitdea7bea336e9dce30cf5a83d7139b0b96c8934cf (patch)
tree36142797f7ebdd7fdf7dde4d8e6fbf610f12a07c /tests
parent3fdb39aacf94445ef5d8a58d64b21223a4972360 (diff)
downloadFreeBSD-src-dea7bea336e9dce30cf5a83d7139b0b96c8934cf.zip
FreeBSD-src-dea7bea336e9dce30cf5a83d7139b0b96c8934cf.tar.gz
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
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 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)));
OpenPOWER on IntegriCloud