diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-24 05:18:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-24 05:18:12 +0000 |
commit | b560b080145a477d5d8a00d7e403248b1609cfa1 (patch) | |
tree | 8643846a5defe1bb23aa764bf2689b625292c06e /lib/test | |
parent | 071e1ba1f86211d742e43a67bc5e106b5a69cddf (diff) | |
download | ruby-b560b080145a477d5d8a00d7e403248b1609cfa1.tar.gz |
* 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
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit.rb | 2 |
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 |