diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-22 18:08:49 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-22 18:08:49 +0000 |
commit | 5e183c725570c1f1778efab1dc6f874dcdb2922e (patch) | |
tree | 5efca80bc6c02a52e5e04ca10adebbb7b0e88ad2 /test/socket | |
parent | b9576e7d848acee37a876df8ff5ec1a8b165fd0d (diff) |
test/socket/test_basicsocket.rb: attempt fix for [ruby-cvs:60402]
I'm not sure how fstat on fd=-1 can succeed on some systems...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_basicsocket.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/socket/test_basicsocket.rb b/test/socket/test_basicsocket.rb index 52732f18f6..ac35f70955 100644 --- a/test/socket/test_basicsocket.rb +++ b/test/socket/test_basicsocket.rb @@ -134,7 +134,8 @@ class TestSocket_BasicSocket < Test::Unit::TestCase end def test_for_fd - assert_raise(Errno::EBADF, '[ruby-core:72418] [Bug #11854]') do + assert_raise(ArgumentError, # [ruby-cvs:60402] + Errno::EBADF, '[ruby-core:72418] [Bug #11854]') do BasicSocket.for_fd(-1) end inet_stream do |sock| |