зеркало из https://github.com/github/ruby.git
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:
Родитель
720ef2546d
Коммит
eec651a05e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче