diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-07 02:53:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-07 02:53:39 +0900 |
commit | ce00fda9254887388b15a3a9ff505d3473cecf57 (patch) | |
tree | 0635a9aa79986a78a3f65420a8e41e096ae74810 /test/ruby/test_autoload.rb | |
parent | 01e0e4c4732b2019166a45b21fbf2b400554e403 (diff) | |
download | ruby-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.rb | 5 |
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 |