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 | 4a520274486d37f283b40b8189f9b2d7668590bd (patch) | |
| tree | 1f5af477e779523cc2055b07ca6401de2f8a9d52 /test/socket/test_unix.rb | |
| parent | 536f48da4cc61130b0d633144ad1c87fa92f8954 (diff) | |
| download | ruby-4a520274486d37f283b40b8189f9b2d7668590bd.tar.gz ruby-4a520274486d37f283b40b8189f9b2d7668590bd.tar.xz ruby-4a520274486d37f283b40b8189f9b2d7668590bd.zip | |
fix tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 081100073..a918fff96 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) |
