1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_io.rb (test_copy_stream_dst_rbuf): set binmode.

* test/ruby/test_io.rb (make_tempfile): set binmode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-06-18 09:45:41 +00:00
parent ad24701cce
commit 18abca0e68

View file

@ -536,7 +536,7 @@ class TestIO < Test::Unit::TestCase
with_pipe {|r, w|
w << "xyz"
w.close
File.open("fom", "w+") {|f|
File.open("fom", "w+b") {|f|
f.write "abcd\n"
f.rewind
assert_equal("abc", f.read(3))
@ -773,6 +773,7 @@ class TestIO < Test::Unit::TestCase
def make_tempfile
t = Tempfile.new("foo")
t.binmode
t.puts "foo"
t.puts "bar"
t.puts "baz"