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