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

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

View file

@ -1,3 +1,8 @@
Thu Oct 16 10:35:33 2014 Eric Wong <e@80x24.org>
* test/-ext-/bug_reporter/test_bug_reporter.rb
(test_bug_reporter_add): fix race
Thu Oct 16 10:09:02 2014 Eric Wong <e@80x24.org>
* test/ruby/test_rubyoptions.rb (test_segv_test): fix race

View file

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