From 7fbf13f7f21876b4206701cb3913fab5e7d82843 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 5 Dec 2003 02:54:48 +0000 Subject: * ext/stringio/stringio.c (strio_read): follow IO#read. * test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb, test/stringio/test_stringio.rb: add EOF test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_pipe.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/ruby/test_pipe.rb (limited to 'test/ruby/test_pipe.rb') diff --git a/test/ruby/test_pipe.rb b/test/ruby/test_pipe.rb new file mode 100644 index 0000000000..a6363ef78b --- /dev/null +++ b/test/ruby/test_pipe.rb @@ -0,0 +1,14 @@ +require 'test/unit' +$:.replace([File.dirname(File.expand_path(__FILE__))] | $:) +require 'ut_eof' +require 'envutil' + +$KCODE = 'none' + +class TestPipe < Test::Unit::TestCase + include TestEOF + def open_file(content) + f = IO.popen("echo -n #{content}") + yield f + end +end -- cgit v1.2.3