From 720ef2546d75cea091c0dfbcb7a0acfdd69625fc Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 16 Oct 2014 01:10:53 +0000 Subject: test/ruby/test_rubyoptions.rb: fix race Signal delivery is not guaranteed to be immediate, a process may exit before receiving signal it sent itself. * test/ruby/test_rubyoptions.rb (test_segv_test): fix race git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_rubyoptions.rb') diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index b435bd95d9..8539835f75 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -568,7 +568,7 @@ class TestRubyOptions < Test::Unit::TestCase end def test_segv_test - assert_segv(["--disable-gems", "-e", "Process.kill :SEGV, $$"]) + assert_segv(["--disable-gems", "-e", "Process.kill :SEGV, $$; sleep"]) end def test_segv_loaded_features -- cgit v1.2.3