* test/zlib/test_zlib.rb (TestZlibGzipReader#test_reader_wrap): set

binmode explicitly for fixing test error on Windows. This is consistent
  with r34243.
  [ruby-dev:45149] [Bug #5812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shirosaki 2012-01-28 00:51:33 +00:00
parent 8f655293ed
commit 11de7c034b
2 changed files with 8 additions and 0 deletions

View file

@ -691,6 +691,7 @@ if defined? Zlib
t.close
Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") }
f = open(t.path)
f.binmode
assert_equal("foo", Zlib::GzipReader.wrap(f) {|gz| gz.read })
assert_raise(IOError) { f.close }
end