mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae96b6e60b
commit
9fcf44697a
2 changed files with 6 additions and 5 deletions
|
@ -148,9 +148,10 @@ class TestUNIXSocket < Test::Unit::TestCase
|
|||
assert_equal("", s1.recv(10))
|
||||
assert_equal("", s1.recv(10))
|
||||
assert_raise(Errno::EAGAIN) { s1.recvfrom_nonblock(10) }
|
||||
rescue Errno::EPROTONOSUPPORT
|
||||
ensure
|
||||
s1.close
|
||||
s2.close
|
||||
s1.close if s1
|
||||
s2.close if s2
|
||||
end
|
||||
|
||||
end if defined?(UNIXSocket)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue