aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket/test_nonblock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r--test/socket/test_nonblock.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index 0109d19636..4b1f209907 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -275,6 +275,19 @@ class TestSocketNonblock < Test::Unit::TestCase
}
end
+ def test_sendmsg_nonblock_seqpacket
+ if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
+ buf = '*' * 10000
+ UNIXSocket.pair(:SEQPACKET) do |s1, s2|
+ assert_raises(IO::WaitWritable) do
+ loop { s1.sendmsg_nonblock(buf) }
+ end
+ end
+ else
+ skip "UNIXSocket.pair(:SEQPACKET) not implemented on this platform"
+ end
+ end
+
def test_recvmsg_nonblock_error
udp_pair {|s1, s2|
begin