From 251b66283b6dcc7ea17a3ba7a1b6a5e09f30eced Mon Sep 17 00:00:00 2001 From: odaira Date: Fri, 16 Oct 2015 20:35:47 +0000 Subject: * test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up code and check RSS to avoid false positive on AIX and false negative on Mac OS X. [Bug #10686] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 5f8314cf35..64ddf3fcf5 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -313,8 +313,8 @@ class TestSymbol < Test::Unit::TestCase def test_symbol_fstr_leak bug10686 = '[ruby-core:67268] [Bug #10686]' x = 0 - assert_no_memory_leak([], '', <<-"end;", bug10686, limit: 1.71) - 200_000.times { |i| i.to_s.to_sym } + assert_no_memory_leak([], '200_000.times { |i| i.to_s.to_sym }; GC.start', <<-"end;", bug10686, limit: 1.71, rss: true) + 200_000.times { |i| (i + 200_000).to_s.to_sym } end; end -- cgit v1.2.3