diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,7 @@ -Sun Oct 24 14:13:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> +Sun Oct 24 14:17:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/test/unit.rb (Test::Unit::Mini#run_test_suites): show the + result even when interrupted on the way. * lib/test/unit.rb (Test::Unit::Mini#run_test_suites): ensure output sync mode to be restored. diff --git a/lib/test/unit.rb b/lib/test/unit.rb index b5b9f719b1..f7e7246198 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -165,6 +165,8 @@ module Test def run_test_suites(*args) old_sync = @@out.sync if @@out.respond_to?(:sync=) super + rescue Interrupt + [@test_count, @assertion_count] ensure @@out.sync = old_sync if @@out.respond_to?(:sync=) end |