Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 22:06:53 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262133 - head/tests/sys/kern
Message-ID:  <201402172206.s1HM6rs9073781@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Mon Feb 17 22:06:52 2014
New Revision: 262133
URL: http://svnweb.freebsd.org/changeset/base/262133

Log:
  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

Modified:
  head/tests/sys/kern/unix_seqpacket_test.c

Modified: head/tests/sys/kern/unix_seqpacket_test.c
==============================================================================
--- head/tests/sys/kern/unix_seqpacket_test.c	Mon Feb 17 20:45:39 2014	(r262132)
+++ head/tests/sys/kern/unix_seqpacket_test.c	Mon Feb 17 22:06:52 2014	(r262133)
@@ -136,7 +136,7 @@ test_eagain(size_t sndbufsize, size_t rc
 	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)));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402172206.s1HM6rs9073781>