Skip to content

Commit 758fc62

Browse files
committed
We need to care assert_no_memory_leak too
1 parent bf5ebd0 commit 758fc62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bigdecimal/test_bigdecimal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ def test_bsearch_for_bigdecimal
22832283

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

0 commit comments

Comments
 (0)