* 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
This commit is contained in:
parent
071e1ba1f8
commit
b560b08014
@ -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
|
* lib/test/unit.rb (Test::Unit::Mini#run_test_suites): ensure
|
||||||
output sync mode to be restored.
|
output sync mode to be restored.
|
||||||
|
@ -165,6 +165,8 @@ module Test
|
|||||||
def run_test_suites(*args)
|
def run_test_suites(*args)
|
||||||
old_sync = @@out.sync if @@out.respond_to?(:sync=)
|
old_sync = @@out.sync if @@out.respond_to?(:sync=)
|
||||||
super
|
super
|
||||||
|
rescue Interrupt
|
||||||
|
[@test_count, @assertion_count]
|
||||||
ensure
|
ensure
|
||||||
@@out.sync = old_sync if @@out.respond_to?(:sync=)
|
@@out.sync = old_sync if @@out.respond_to?(:sync=)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user