From eec651a05e3fa316564572c4441f95016ee3daaf Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 16 Oct 2014 02:01:51 +0000 Subject: [PATCH] test/-ext-/bug_reporter/test_bug_reporter.rb: fix race Signal delivery is not immediate, so wait for signal delivery. * test/-ext-/bug_reporter/test_bug_reporter.rb (test_bug_reporter_add): fix race git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/-ext-/bug_reporter/test_bug_reporter.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4470b6463f..dac972a42d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 16 10:35:33 2014 Eric Wong + + * test/-ext-/bug_reporter/test_bug_reporter.rb + (test_bug_reporter_add): fix race + Thu Oct 16 10:09:02 2014 Eric Wong * test/ruby/test_rubyoptions.rb (test_segv_test): fix race diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb index 3f804a633a..53786252a8 100644 --- a/test/-ext-/bug_reporter/test_bug_reporter.rb +++ b/test/-ext-/bug_reporter/test_bug_reporter.rb @@ -16,7 +16,7 @@ class TestBugReporter < Test::Unit::TestCase args = ["--disable-gems", "-r-test-/bug_reporter/bug_reporter", "-C", tmpdir] - stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$" + stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$; sleep" _, stderr, status = EnvUtil.invoke_ruby(args, stdin, false, true) assert_pattern_list(expected_stderr, stderr) ensure