mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
Test for r30939. * lib/test/unit.rb: For test. * lib/test/parallel.rb: For test. * lib/test/unit/testcase.rb: For test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92729ad473
commit
48fa6ed529
10 changed files with 283 additions and 3 deletions
|
@ -10,6 +10,7 @@ module Test
|
|||
alias orig_run_suite _run_suite
|
||||
undef _run_suite
|
||||
undef _run_suites
|
||||
undef run
|
||||
|
||||
def _run_suites suites, type
|
||||
suites.map do |suite|
|
||||
|
@ -42,13 +43,12 @@ module Test
|
|||
MiniTest::Unit.output = orig_stdout
|
||||
|
||||
o.close
|
||||
i.close
|
||||
|
||||
begin
|
||||
th.join
|
||||
rescue IOError
|
||||
raise unless ["stream closed","closed stream"].include? $!.message
|
||||
end
|
||||
i.close
|
||||
|
||||
result << (report - r)
|
||||
result << [@errors-e,@failures-f,@skips-s]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue