From 758fc62a52cbf382788c7aa9eca170d5ba9d7648 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 17 Jan 2024 19:34:25 +0900 Subject: [PATCH] We need to care assert_no_memory_leak too --- test/bigdecimal/test_bigdecimal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 078b059c..bab23a47 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -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)