From eec651a05e3fa316564572c4441f95016ee3daaf Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 16 Oct 2014 02:01:51 +0000 Subject: 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 --- test/-ext-/bug_reporter/test_bug_reporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/-ext-/bug_reporter/test_bug_reporter.rb') 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 -- cgit v1.2.3