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/branches/ruby_1_8@10421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-06-28 10:07:52 +00:00
parent 27927c258a
commit b2f658c0d0
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]
Tue Jun 27 23:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org> Tue Jun 27 23:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c: RDoc update for =~ method. a patch from Alex Young * string.c: RDoc update for =~ method. a patch from Alex Young

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