ruby-changes:46692
From: normal <ko1@a...>
Date: Sat, 20 May 2017 06:34:07 +0900 (JST)
Subject: [ruby-changes:46692] normal:r58807 (trunk): fix off-by-one in r58806
normal 2017-05-20 06:34:04 +0900 (Sat, 20 May 2017) New Revision: 58807 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58807 Log: fix off-by-one in r58806 Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 58806) +++ test/ruby/test_io.rb (revision 58807) @@ -3558,7 +3558,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3558 TCPServer.open('localhost', 0) do |svr| con = TCPSocket.new('localhost', svr.addr[1]) acc = svr.accept - assert_equal 6, con.send('hello', Socket::MSG_OOB) + assert_equal 5, con.send('hello', Socket::MSG_OOB) set = IO.select(nil, nil, [acc], 30) assert_equal([[], [], [acc]], set, 'IO#select exceptions array OK') acc.close -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/