Skip to content

Commit

Permalink
We need to care assert_no_memory_leak too
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 18, 2024
1 parent bf5ebd0 commit 758fc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bigdecimal/test_bigdecimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,7 @@ def test_bsearch_for_bigdecimal

def assert_no_memory_leak(code, *rest, **opt)
code = "8.times {20_000.times {begin #{code}; rescue NoMemoryError; end}; GC.start}"
super(["-rbigdecimal"],
super(["-I#{$LOAD_PATH.join(":")}", "-rbigdecimal"],
"b = BigDecimal('10'); b.nil?; " \
"GC.add_stress_to_class(BigDecimal); "\
"#{code}", code, *rest, rss: true, limit: 1.1, **opt)
Expand Down

0 comments on commit 758fc62

Please sign in to comment.