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:
parent
ad24701cce
commit
18abca0e68
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue