summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-15 05:57:08 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-15 05:57:08 +0000
commit89d7ac8090e22285327d1e502d7753813ae68f88 (patch)
tree0822b152faf7f6101598fb93d7d1358d5f587beb /test
parentef46ac506d1f48a769848ceaf73cd0db26d0159e (diff)
merge revision(s) 34106:
* test/test_pty.rb (test_pty_check_default): call PTY.check until "cat" command is finished. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_pty.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb
index 025cafc8f8..3b3aa57ab9 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -172,8 +172,9 @@ class TestPTY < Test::Unit::TestCase
st1 = PTY.check(pid)
w.close
r.close
- sleep(0.1)
- st2 = PTY.check(pid)
+ begin
+ sleep(0.1)
+ end until st2 = PTY.check(pid)
end
assert_equal(pid, st1.pid) if st1
assert_nil(st1)