* 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
@ -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>
|
Tue Aug 21 10:40:06 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* test_continuation.rb (tracing_with_thread_set_trace_func):
|
* test_continuation.rb (tracing_with_thread_set_trace_func):
|
||||||
|
@ -824,6 +824,15 @@ module Test
|
|||||||
new(*args).run
|
new(*args).run
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProxyError < StandardError
|
||||||
|
def initialize(ex)
|
||||||
|
@message = ex.message
|
||||||
|
@backtrace = ex.backtrace
|
||||||
|
end
|
||||||
|
|
||||||
|
attr_accessor :message, :backtrace
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ module Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def puke(klass, meth, e)
|
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
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user