summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 01:10:53 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 01:10:53 +0000
commit720ef2546d75cea091c0dfbcb7a0acfdd69625fc (patch)
tree399223366a309afcc2a2841429e2d06996edf551 /test/ruby/test_rubyoptions.rb
parent8b1955d060f5cc38b9fabaaa6a59fa34ebc0e6d1 (diff)
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
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb2
1 files changed, 1 insertions, 1 deletions
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