mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/envutil.rb (assert_ruby_status): include stderr output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cedfed5e8d
commit
f001a450f2
1 changed files with 3 additions and 3 deletions
|
@ -268,9 +268,9 @@ module Test
|
|||
end
|
||||
|
||||
def assert_ruby_status(args, test_stdin="", message=nil, opt={})
|
||||
_, _, status = EnvUtil.invoke_ruby(args, test_stdin, false, false, opt)
|
||||
m = message ? "#{message} (#{status.inspect})" : "ruby exit status is not success: #{status.inspect}"
|
||||
assert(status.success?, m)
|
||||
out, _, status = EnvUtil.invoke_ruby(args, test_stdin, true, :merge_to_stdout, opt)
|
||||
message ||= "ruby exit status is not success:"
|
||||
assert(status.success?, FailDesc[status, message, out])
|
||||
end
|
||||
|
||||
ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV")
|
||||
|
|
Loading…
Add table
Reference in a new issue