mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use server_port for Windows
fix r41686 [Bug #8574] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb06e8d3ad
commit
7c467109dd
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
|
|||
TCPSocket.new(addr, server_port, addr, client_port)
|
||||
flunk "expected SystemCallError"
|
||||
rescue SystemCallError => e
|
||||
assert_match "for \"#{addr}\" port #{client_port}", e.message
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
assert_match "for \"#{addr}\" port #{server_port}", e.message
|
||||
else
|
||||
assert_match "for \"#{addr}\" port #{client_port}", e.message
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue