summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_pipe.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-05 02:54:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-05 02:54:48 +0000
commitbf625b1809e01a8fe505f5a344149e8df8e3795e (patch)
tree75d78dfa2134f18d318611d3ca7e3f74e417e5d9 /test/ruby/test_pipe.rb
parent513dbc6e6858cddf28418396fa7f1a7c652c1cb7 (diff)
downloadruby-bf625b1809e01a8fe505f5a344149e8df8e3795e.tar.gz
ruby-bf625b1809e01a8fe505f5a344149e8df8e3795e.tar.xz
ruby-bf625b1809e01a8fe505f5a344149e8df8e3795e.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_pipe.rb')
-rw-r--r--test/ruby/test_pipe.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_pipe.rb b/test/ruby/test_pipe.rb
new file mode 100644
index 000000000..a6363ef78
--- /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