summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 86b6022..d67cdcb 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)