diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-16 01:10:53 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-16 01:10:53 +0000 |
commit | 720ef2546d75cea091c0dfbcb7a0acfdd69625fc (patch) | |
tree | 399223366a309afcc2a2841429e2d06996edf551 | |
parent | 8b1955d060f5cc38b9fabaaa6a59fa34ebc0e6d1 (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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Oct 16 10:09:02 2014 Eric Wong <[email protected]> + + * test/ruby/test_rubyoptions.rb (test_segv_test): fix race + Thu Oct 16 09:17:48 2014 Nobuyoshi Nakada <[email protected]> * 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 |