aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_autoload.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-07 02:53:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-07 02:53:39 +0900
commitce00fda9254887388b15a3a9ff505d3473cecf57 (patch)
tree0635a9aa79986a78a3f65420a8e41e096ae74810 /test/ruby/test_autoload.rb
parent01e0e4c4732b2019166a45b21fbf2b400554e403 (diff)
downloadruby-ce00fda9254887388b15a3a9ff505d3473cecf57.tar.gz
Suffixed memory leak tests as "memory_leak"
So that `TEST_EXCLUDES` option in common.mk works.
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r--test/ruby/test_autoload.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index d3470d59d4..2e2e79dffd 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -440,8 +440,9 @@ p Foo::Bar
end
end
- def test_no_leak
- assert_no_memory_leak([], '', <<~'end;', 'many autoloads', timeout: 60)
+ def test_no_memory_leak
+ assert_no_memory_leak([], '', "#{<<~"begin;"}\n#{<<~'end;'}", 'many autoloads', timeout: 60)
+ begin;
200000.times do |i|
m = Module.new
m.instance_eval do