1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_rubyoptions.rb: clean crash log

* test/ruby/test_rubyoptions.rb (test_segv_loaded_features): clean
  crash log on OS X after intentional segv.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-12-16 04:39:17 +00:00
parent 9787723785
commit 5020101829

View file

@ -587,6 +587,10 @@ class TestRubyOptions < Test::Unit::TestCase
nil,
opts)
end
if signo = status.termsig
sleep 0.1
EnvUtil.diagnostic_reports(Signal.signame(signo), EnvUtil.rubybin, status.pid, Time.now)
end
assert_not_predicate(status, :success?, "segv but success #{bug7402}")
end