зеркало из https://github.com/github/ruby.git
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may
return nil and nil can not dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1cf47c4cc0
Коммит
bb28d902e8
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jan 2 14:55:28 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may
|
||||||
|
return nil and nil can not dup.
|
||||||
|
|
||||||
Sun Jan 1 12:23:10 2012 Akinori MUSHA <knu@iDaemons.org>
|
Sun Jan 1 12:23:10 2012 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/shellwords.rb (Shellwords#shellescape): Drop the //n flag
|
* lib/shellwords.rb (Shellwords#shellescape): Drop the //n flag
|
||||||
|
|
|
@ -433,8 +433,9 @@ module Test
|
||||||
while stat = Process.wait2
|
while stat = Process.wait2
|
||||||
break if @interrupt # Break when interrupt
|
break if @interrupt # Break when interrupt
|
||||||
pid, stat = stat
|
pid, stat = stat
|
||||||
w = (@workers + @dead_workers).find{|x| pid == x.pid }.dup
|
w = (@workers + @dead_workers).find{|x| pid == x.pid }
|
||||||
next unless w
|
next unless w
|
||||||
|
w = w.dup
|
||||||
if w.status != :quit && !w.quit_called?
|
if w.status != :quit && !w.quit_called?
|
||||||
# Worker down
|
# Worker down
|
||||||
w.died(nil, !stat.signaled? && stat.exitstatus)
|
w.died(nil, !stat.signaled? && stat.exitstatus)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче