Skip to content

Commit

Permalink
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may
Browse files Browse the repository at this point in the history
  return nil and nil can not dup.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Jan 2, 2012
1 parent 1cf47c4 commit bb28d90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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>

* lib/shellwords.rb (Shellwords#shellescape): Drop the //n flag
Expand Down
3 changes: 2 additions & 1 deletion lib/test/unit.rb
Expand Up @@ -433,8 +433,9 @@ def _run_parallel suites, type, result
while stat = Process.wait2
break if @interrupt # Break when interrupt
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
w = w.dup
if w.status != :quit && !w.quit_called?
# Worker down
w.died(nil, !stat.signaled? && stat.exitstatus)
Expand Down

0 comments on commit bb28d90

Please sign in to comment.