From 38a38766deef994577cfb89e7a1b5a30e8bcd7eb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Nov 2011 01:16:59 +0000 Subject: test: set Thread.abort_on_exception= true Should make tests easier to fix and debug. --- test/exec.rb | 1 + test/setup.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/test/exec.rb b/test/exec.rb index b2c2bf9..d84713e 100644 --- a/test/exec.rb +++ b/test/exec.rb @@ -1,5 +1,6 @@ # -*- encoding: binary -*- $stdout.sync = $stderr.sync = true +Thread.abort_on_exception = true require 'test/unit' require 'securerandom' require 'tempfile' diff --git a/test/setup.rb b/test/setup.rb index b831cc1..8fda7f1 100644 --- a/test/setup.rb +++ b/test/setup.rb @@ -1,5 +1,6 @@ # -*- encoding: binary -*- STDIN.sync = STDOUT.sync = STDERR.sync = true +Thread.abort_on_exception = true require 'test/unit' require 'tempfile' require 'fileutils' -- cgit v1.2.3-24-ge0c7