summaryrefslogtreecommitdiff
path: root/test/-ext-/bug_reporter
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 02:01:51 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 02:01:51 +0000
commiteec651a05e3fa316564572c4441f95016ee3daaf (patch)
tree39d76c9fb61dd64f81c8eba500c29cfa9478874c /test/-ext-/bug_reporter
parent720ef2546d75cea091c0dfbcb7a0acfdd69625fc (diff)
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
Diffstat (limited to 'test/-ext-/bug_reporter')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb2
1 files changed, 1 insertions, 1 deletions
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