diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 86b6022b82..d67cdcb984 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -594,7 +594,7 @@ class TestRubyOptions < Test::Unit::TestCase sleep 0.1 ps = `#{PSCMD.join(' ')} #{pid}` break if /hello world/ =~ ps - end while Process.wait(pid, Process::WNOHANG) + end until Process.wait(pid, Process::WNOHANG) assert_match(/hello world/, ps) Process.kill :KILL, pid Process.wait(pid) @@ -620,7 +620,7 @@ class TestRubyOptions < Test::Unit::TestCase sleep 0.1 ps = `#{PSCMD.join(' ')} #{pid}` break if /hello world/ =~ ps - end while Process.wait(pid, Process::WNOHANG) + end until Process.wait(pid, Process::WNOHANG) assert_match(/hello world/, ps) Process.kill :KILL, pid Process.wait(pid)