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
7 changes: 3 additions & 4 deletions test/zlib/test_zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1282,10 +1282,9 @@
end

def test_gets_separator_modified_by_io
# 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
# a shared substring stays outside the object even with a GC that embeds
# strings of any length (MMTk) and moves them to larger slots
rs = ("-" * 1000).freeze[0, 1000]
src = StringIO.new(Zlib.gzip(Random.new(0).bytes(200_000).tr("-", "x") + rs))
n = 0
io = Object.new
Expand Down Expand Up @@ -2254,7 +2253,7 @@
end

def test_gunzip_no_memory_leak
assert_no_memory_leak(%W[-r#{LOADED_ZLIB}], "#{<<~"{#"}", "#{<<~'};'}")

Check failure on line 2256 in test/zlib/test_zlib.rb

View workflow job for this annotation

GitHub Actions / build (4.0 / windows-latest)

Error

Timeout::Error: execution of Test::Unit::CoreAssertions#assert_no_memory_leak expired timeout (10 sec) pid 2892 exit 0 | ruby 4.0.10 (2026-11-19 revision a704b7cd95) +PRISM [x64-mingw-ucrt] | | 8028:1795758137.855:b737:�[mSTART={size:65961984,rss:28672000,peak:28672000} | 8028:1795758137.855:b737:�[mFINAL={size:67637248,rss:29368320,peak:33140736} D:/a/zlib/zlib/test/zlib/test_zlib.rb:2256:in 'TestZlib#test_gunzip_no_memory_leak'
d = Zlib.gzip("data")
{#
10_000.times {Zlib.gunzip(d)}
Expand Down
Loading