mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/test/unit.rb: workers sudden-death
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): deal with sudden-death of workers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
51c44ab1ec
commit
5fe8065849
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jun 20 11:24:35 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): deal with
|
||||||
|
sudden-death of workers.
|
||||||
|
|
||||||
Mon Jun 18 20:34:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Mon Jun 18 20:34:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* time.c (init_leap_second_info): fix non-ANSI function declaration.
|
* time.c (init_leap_second_info): fix non-ANSI function declaration.
|
||||||
|
|
|
@ -544,7 +544,7 @@ module Test
|
||||||
@warnings << Marshal.load($1.unpack("m")[0])
|
@warnings << Marshal.load($1.unpack("m")[0])
|
||||||
when /^bye (.+?)$/
|
when /^bye (.+?)$/
|
||||||
after_worker_down worker, Marshal.load($1.unpack("m")[0])
|
after_worker_down worker, Marshal.load($1.unpack("m")[0])
|
||||||
when /^bye$/
|
when /^bye$/, nil
|
||||||
if shutting_down || worker.quit_called
|
if shutting_down || worker.quit_called
|
||||||
after_worker_quit worker
|
after_worker_quit worker
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue