diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-25 09:03:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-25 09:03:51 +0000 |
commit | 8e10ee739b2d09ee2deb89980591843c93d9dc97 (patch) | |
tree | 8b78a103106bc20babbfb99262d590b0beffa150 /test/ruby | |
parent | 6f8e5cc821c2c118ff2997fbcaf3c269ae454a8c (diff) | |
download | ruby-8e10ee739b2d09ee2deb89980591843c93d9dc97.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/envutil.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 9ff414c367..c7ffc41598 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -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") |