From 50201018292a9f02b1413e8bc35f8d90a9c56613 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 16 Dec 2014 04:39:17 +0000 Subject: [PATCH] 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 --- test/ruby/test_rubyoptions.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 3be7b70208..915080684b 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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