1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/socket/test_unix.rb: test_seqpacket_pair removed.

[ruby-dev:28846]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-06-28 10:07:52 +00:00
parent ab15a714f8
commit 91ea1529c6
2 changed files with 5 additions and 18 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 28 19:04:34 2006 Tanaka Akira <akr@m17n.org>
* test/socket/test_unix.rb: test_seqpacket_pair removed.
[ruby-dev:28846]
Wed Jun 28 13:51:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Jun 28 13:51:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (when_check): arbitrary values are allowed after splats. * eval.c (when_check): arbitrary values are allowed after splats.

View file

@ -133,24 +133,6 @@ class TestUNIXSocket < Test::Unit::TestCase
assert_equal("", s1.recv(10)) assert_equal("", s1.recv(10))
assert_equal("", s1.recv(10)) assert_equal("", s1.recv(10))
assert_raise(Errno::EAGAIN) { s1.recv_nonblock(10) } assert_raise(Errno::EAGAIN) { s1.recv_nonblock(10) }
ensure
s1.close
s2.close
end
def test_seqpacket_pair
s1, s2 = UNIXSocket.pair(Socket::SOCK_SEQPACKET)
assert_raise(Errno::EAGAIN) { s1.recv_nonblock(10) }
s2.send("", 0)
s2.send("haha", 0)
s2.send("", 0)
s2.send("", 0)
assert_equal("", s1.recv(10))
assert_equal("haha", s1.recv(10))
assert_equal("", s1.recv(10))
assert_equal("", s1.recv(10))
assert_raise(Errno::EAGAIN) { s1.recv_nonblock(10) }
rescue Errno::EPROTONOSUPPORT
ensure ensure
s1.close if s1 s1.close if s1
s2.close if s2 s2.close if s2