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:
parent
6e5f49770c
commit
9e53a0b142
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue