* 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 * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): check if worker
is signaled and use its exit status. is signaled and use its exit status.

View File

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