mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
* 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
This commit is contained in:
parent
e3ed269193
commit
7fbf13f7f2
8 changed files with 93 additions and 14 deletions
14
test/ruby/test_pipe.rb
Normal file
14
test/ruby/test_pipe.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue