mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: ensure errors
* test/ruby/envutil.rb (assert_separately): dump error and assertions by END to ensure outputs even if failed to catch the raised exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d33820e85f
commit
7e47f6838a
1 changed files with 4 additions and 4 deletions
|
@ -324,11 +324,11 @@ module Test
|
|||
line -= 2
|
||||
src = <<eom
|
||||
# -*- coding: #{src.encoding}; -*-
|
||||
require #{__dir__.dump}'/envutil';include Test::Unit::Assertions;begin
|
||||
#{src}
|
||||
ensure
|
||||
require #{__dir__.dump}'/envutil';include Test::Unit::Assertions
|
||||
END {
|
||||
puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"
|
||||
end
|
||||
}
|
||||
#{src}
|
||||
class Test::Unit::Runner
|
||||
@@stop_auto_run = true
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue