mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@34106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b32f79e0db
commit
8beb0d3587
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Dec 23 09:23:48 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* test/test_pty.rb (test_pty_check_default): call PTY.check until
|
||||||
|
"cat" command is finished.
|
||||||
|
|
||||||
Fri Dec 23 06:03:00 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
Fri Dec 23 06:03:00 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||||
|
|
||||||
* common.mk: add "check succeeded" message.
|
* common.mk: add "check succeeded" message.
|
||||||
|
|
|
@ -172,12 +172,13 @@ class TestPTY < Test::Unit::TestCase
|
||||||
st1 = PTY.check(pid)
|
st1 = PTY.check(pid)
|
||||||
w.close
|
w.close
|
||||||
r.close
|
r.close
|
||||||
|
begin
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
st2 = PTY.check(pid)
|
end until st2 = PTY.check(pid)
|
||||||
end
|
end
|
||||||
assert_equal(pid, st1.pid) if st1
|
assert_equal(pid, st1.pid) if st1
|
||||||
assert_nil(st1)
|
assert_nil(st1)
|
||||||
assert_equal(pid, st2.pid) if st2
|
assert_equal(pid, st2.pid)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_pty_check_raise
|
def test_pty_check_raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue