diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-04 12:15:01 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-04 12:15:01 +0000 |
commit | 9fcf44697a8516c6dd9077bd39e0b6cfd940954e (patch) | |
tree | 5078deedfb0f15109adc7d148ef777de0886b23d /test/socket/test_unix.rb | |
parent | ae96b6e60b6630337a6b9c87d5c58a70cc41af34 (diff) | |
download | ruby-9fcf44697a8516c6dd9077bd39e0b6cfd940954e.tar.gz |
fix tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket/test_unix.rb')
-rw-r--r-- | test/socket/test_unix.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index 081100073a..a918fff966 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -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) |