Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/zlib/test_zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,10 @@ def test_read0
end

def test_gets_separator_modified_by_io
rs = "-" * 1000
# grown from an empty string so that the content lives in a separate
# buffer even with a GC that embeds 1000 bytes in the object (mmtk)
rs = "".dup
rs << "-" * 1000
src = StringIO.new(Zlib.gzip(Random.new(0).bytes(200_000).tr("-", "x") + rs))
n = 0
io = Object.new
Expand Down
Loading