1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
normal 2014-10-16 01:10:53 +00:00
parent 8b1955d060
commit 720ef2546d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Oct 16 10:09:02 2014 Eric Wong <e@80x24.org>
* test/ruby/test_rubyoptions.rb (test_segv_test): fix race
Thu Oct 16 09:17:48 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* cont.c (rb_fiber_t): fix compile error caused by move to

View file

@ -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