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#died): rename using a

verb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-04-14 13:48:05 +00:00
parent ed1c3f56c0
commit 146bedd6c4
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,7 @@
Thu Apr 14 22:47:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
Thu Apr 14 22:47:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner::Worker#died): rename using a
verb.
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): check if worker
is signaled and use its exit status.

View file

@ -260,10 +260,10 @@ module Test
puts "run #{task} #{type}"
@status = :prepare
rescue Errno::EPIPE
dead
died
rescue IOError
raise unless ["stream closed","closed stream"].include? $!.message
dead
died
end
end
@ -283,7 +283,7 @@ module Test
self
end
def dead(*additional)
def died(*additional)
@status = :quit
@io.close
@ -409,7 +409,7 @@ module Test
next unless w
unless w.status == :quit
# Worker down
w.dead(nil, !stat.signaled? && stat.exitstatus)
w.died(nil, !stat.signaled? && stat.exitstatus)
end
end
end