mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/unit/test.rb (Test::Unit::ProxyError): new exception class to
wrap exceptions raised in workers in parallel test mode. * test/unit/parallel.rb (Test::Unit::Worker#puke): use above warpper exception. [Bug #6882] [ruby-dev:46054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dc78d90ad1
commit
9bb6a05283
3 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
Tue Aug 21 10:52:08 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/unit/test.rb (Test::Unit::ProxyError): new exception class to
|
||||
wrap exceptions raised in workers in parallel test mode.
|
||||
|
||||
* test/unit/parallel.rb (Test::Unit::Worker#puke): use above warpper
|
||||
exception.
|
||||
[Bug #6882] [ruby-dev:46054]
|
||||
|
||||
Tue Aug 21 10:40:06 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test_continuation.rb (tracing_with_thread_set_trace_func):
|
||||
|
|
|
@ -824,6 +824,15 @@ module Test
|
|||
new(*args).run
|
||||
end
|
||||
end
|
||||
|
||||
class ProxyError < StandardError
|
||||
def initialize(ex)
|
||||
@message = ex.message
|
||||
@backtrace = ex.backtrace
|
||||
end
|
||||
|
||||
attr_accessor :message, :backtrace
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ module Test
|
|||
end
|
||||
|
||||
def puke(klass, meth, e)
|
||||
@partial_report << [klass.name, meth, e]
|
||||
@partial_report << [klass.name, meth, e.is_a?(MiniTest::Assertion) ? e : ProxyError.new(e)]
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue