mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_argf.rb (test_readlines_twice_tty): removed incomplete test committed accidentally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
01d54bc2c7
commit
dc82e7e749
1 changed files with 0 additions and 15 deletions
|
@ -746,19 +746,4 @@ class TestArgf < Test::Unit::TestCase
|
|||
bug5952 = '[ruby-dev:45160]'
|
||||
assert_ruby_status(["-e", "2.times {STDIN.tty?; readlines}"], "", bug5952)
|
||||
end
|
||||
|
||||
def test_readlines_twice_tty
|
||||
bug5952 = '[ruby-dev:45160]'
|
||||
require 'io/console'
|
||||
require 'pty'
|
||||
rescue LoadError
|
||||
skip $!
|
||||
else
|
||||
lines = nil
|
||||
PTY.spawn(EnvUtil.rubybin, "-e", "2.times{STDIN.tty?; p readlines}") do |slave, master, pid|
|
||||
master.write("foo\n\C-d""bar\n\C-d")
|
||||
lines = slave.readlines
|
||||
end
|
||||
assert_equal('["bar\n"]', lines.last.chomp, bug5952)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue