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
@ -324,11 +324,11 @@ module Test
|
|||||||
line -= 2
|
line -= 2
|
||||||
src = <<eom
|
src = <<eom
|
||||||
# -*- coding: #{src.encoding}; -*-
|
# -*- coding: #{src.encoding}; -*-
|
||||||
require #{__dir__.dump}'/envutil';include Test::Unit::Assertions;begin
|
require #{__dir__.dump}'/envutil';include Test::Unit::Assertions
|
||||||
#{src}
|
END {
|
||||||
ensure
|
|
||||||
puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"
|
puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"
|
||||||
end
|
}
|
||||||
|
#{src}
|
||||||
class Test::Unit::Runner
|
class Test::Unit::Runner
|
||||||
@@stop_auto_run = true
|
@@stop_auto_run = true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user