summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 09:45:41 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 09:45:41 +0000
commit18abca0e68a53478b475ef39e3127a943ba5d8d3 (patch)
tree0a0b2fd78b74a9216c18e91ce79e61f33de5937c /test/ruby/test_io.rb
parentad24701cceb53750abae8b0a86db44bc86a8c746 (diff)
* 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
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 313fc0c864..4f2f40044b 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -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"