aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-21 01:57:19 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-21 01:57:19 +0000
commit9bb6a05283ce7f3deb57c707b16c60b43abd3e97 (patch)
tree70cbeca599b71b1228a2546d8bf9e3ad3fb67f25 /lib/test/unit.rb
parentdc78d90ad173936123d221aa7beba9acbb96e4c9 (diff)
downloadruby-9bb6a05283ce7f3deb57c707b16c60b43abd3e97.tar.gz
* 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
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index a0902acb8b..c29facca71 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -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