* test/io/console/test_io_console.rb (TestIO_Console#run_pty): no block given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb933bf70b
commit
c10d7640b2
@ -256,7 +256,11 @@ class TestIO_Console < Test::Unit::TestCase
|
|||||||
else
|
else
|
||||||
result = r.readlines(&:chomp)
|
result = r.readlines(&:chomp)
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
|
if block_given?
|
||||||
yield result
|
yield result
|
||||||
|
else
|
||||||
|
result
|
||||||
|
end
|
||||||
ensure
|
ensure
|
||||||
r.close if r
|
r.close if r
|
||||||
w.close if w
|
w.close if w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user