aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-16 20:35:47 +0000
committerodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-16 20:35:47 +0000
commit74d5a46ef9a0324a7220d6402eebd4bf88ade44e (patch)
treed038d4075413225585312c3b902c34f7b3bdf012
parent53e2aa5e3dcaad7d6b55f3c8cb43a7935b036fa4 (diff)
downloadruby-74d5a46ef9a0324a7220d6402eebd4bf88ade44e.tar.gz
* 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
-rw-r--r--ChangeLog6
-rw-r--r--test/ruby/test_symbol.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a0b75f536..d0e58261cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 17 05:28:32 2015 Rei Odaira <Rei.Odaira@gmail.com>
+
+ * 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]
+
Fri Oct 16 15:54:37 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_load_ok): open in non-blocking mode withoout
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