1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case

when IO#read or IO#gets returns nil.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-03-10 01:35:56 +00:00
parent 6e5f49770c
commit 9e53a0b142
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Mar 10 10:09:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
when IO#read or IO#gets returns nil.
Thu Mar 10 07:12:03 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/rubygems*: Import rubygems 1.6.2 (release candidate @ 2026fbb5)

View file

@ -274,7 +274,8 @@ module Test
end
def read
((@status == :quit) ? @io.read : @io.gets).chomp
res = (@status == :quit) ? @io.read : @io.gets
res && res.chomp
end
def close