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 --- ChangeLog | 4 ++++ test/ruby/test_rubyoptions.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3cc827984..4470b6463f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 16 10:09:02 2014 Eric Wong + + * test/ruby/test_rubyoptions.rb (test_segv_test): fix race + Thu Oct 16 09:17:48 2014 Nobuyoshi Nakada * cont.c (rb_fiber_t): fix compile error caused by move to 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