From b560b080145a477d5d8a00d7e403248b1609cfa1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 24 Oct 2010 05:18:12 +0000 Subject: * lib/test/unit.rb (Test::Unit::Mini#run_test_suites): show the result even when interrupted on the way. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/test/unit.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/test') 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 -- cgit v1.2.3