ruby-changes:29751
From: naruse <ko1@a...>
Date: Sat, 6 Jul 2013 03:38:32 +0900 (JST)
Subject: [ruby-changes:29751] naruse:r41802 (trunk): Use server_port for Windows
naruse 2013-07-06 03:38:17 +0900 (Sat, 06 Jul 2013) New Revision: 41802 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41802 Log: Use server_port for Windows fix r41686 [Bug #8574] Modified files: trunk/test/socket/test_tcp.rb Index: test/socket/test_tcp.rb =================================================================== --- test/socket/test_tcp.rb (revision 41801) +++ test/socket/test_tcp.rb (revision 41802) @@ -21,7 +21,11 @@ class TestSocket_TCPSocket < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/socket/test_tcp.rb#L21 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/