aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb2
1 files changed, 2 insertions, 0 deletions
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