Permalink
Browse files

Set Thread.abort_on_exception for the whole AS, AP, and AR tests

this would give us some more clues in case a test silently dies inside Thread
  • Loading branch information...
1 parent 07c7cb4 commit b7b27fc2a3d28c0113e27eea8615e52f723370cb @amatsuda amatsuda committed Jan 24, 2013
Showing with 6 additions and 0 deletions.
  1. +2 −0 actionpack/test/abstract_unit.rb
  2. +2 −0 activerecord/test/cases/helper.rb
  3. +2 −0 activesupport/test/abstract_unit.rb
@@ -38,6 +38,8 @@ def env
ActiveSupport::Dependencies.hook!
+Thread.abort_on_exception = true
+
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
@@ -15,6 +15,8 @@
# TODO: Move all these random hacks into the ARTest namespace and into the support/ dir
+Thread.abort_on_exception = true
+
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
@@ -21,5 +21,7 @@
ENV['NO_RELOAD'] = '1'
require 'active_support'
+Thread.abort_on_exception = true
+
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true

0 comments on commit b7b27fc

Please sign in to comment.