summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-05 18:38:17 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-05 18:38:17 +0000
commit7c467109dd6cb3453fa6c2370374ee3b469da373 (patch)
tree03d064943db244511f276c571f22f54cd47a00c1 /test/socket
parenteb06e8d3ad21f60e9e0c499f9d70050f79ff5de0 (diff)
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
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_tcp.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index b594682..aeceef6 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -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