mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_rubyoptions.rb: relax timeout
* test/ruby/test_rubyoptions.rb: wait for setting process title until the child process dies, in the case of extra heavy loads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e82c4f1c1
commit
83b14c26aa
1 changed files with 4 additions and 4 deletions
|
@ -590,11 +590,11 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
|
||||
pid = spawn(EnvUtil.rubybin, "test-script")
|
||||
ps = nil
|
||||
10.times do
|
||||
begin
|
||||
sleep 0.1
|
||||
ps = `#{PSCMD.join(' ')} #{pid}`
|
||||
break if /hello world/ =~ ps
|
||||
end
|
||||
end while Process.wait(pid, Process::WNOHANG)
|
||||
assert_match(/hello world/, ps)
|
||||
Process.kill :KILL, pid
|
||||
Process.wait(pid)
|
||||
|
@ -616,11 +616,11 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
|
||||
pid = spawn(EnvUtil.rubybin, "test-script")
|
||||
ps = nil
|
||||
10.times do
|
||||
begin
|
||||
sleep 0.1
|
||||
ps = `#{PSCMD.join(' ')} #{pid}`
|
||||
break if /hello world/ =~ ps
|
||||
end
|
||||
end while Process.wait(pid, Process::WNOHANG)
|
||||
assert_match(/hello world/, ps)
|
||||
Process.kill :KILL, pid
|
||||
Process.wait(pid)
|
||||
|
|
Loading…
Reference in a new issue