summaryrefslogtreecommitdiff
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-01 01:50:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-01 01:50:52 +0000
commitdc82e7e7496f1c22750a58c456cdea849751b70b (patch)
tree33d631e9f0f3c5d455c41d98759067231e875930 /test/ruby/test_argf.rb
parent01d54bc2c7f9baaa86b5444e799f9c00cd9cabe7 (diff)
* 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
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r--test/ruby/test_argf.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb
index fe7603490ba..1480ce1c417 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