ruby-changes:35890
From: normal <ko1@a...>
Date: Thu, 16 Oct 2014 10:11:08 +0900 (JST)
Subject: [ruby-changes:35890] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race
normal 2014-10-16 10:10:53 +0900 (Thu, 16 Oct 2014) New Revision: 47971 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47971 Log: 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 Modified files: trunk/ChangeLog trunk/test/ruby/test_rubyoptions.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47970) +++ ChangeLog (revision 47971) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Oct 16 10:09:02 2014 Eric Wong <e@8...> + + * test/ruby/test_rubyoptions.rb (test_segv_test): fix race + Thu Oct 16 09:17:48 2014 Nobuyoshi Nakada <nobu@r...> * cont.c (rb_fiber_t): fix compile error caused by move to Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 47970) +++ test/ruby/test_rubyoptions.rb (revision 47971) @@ -568,7 +568,7 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L568 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/