From dc82e7e7496f1c22750a58c456cdea849751b70b Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Feb 2012 01:50:52 +0000 Subject: * 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 --- test/ruby/test_argf.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index fe7603490b..1480ce1c41 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -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 -- cgit v1.2.3