Project

General

Profile

Bug #10686 ยป test_symbol.patch

ReiOdaira (Rei Odaira), 09/27/2015 05:40 AM

View differences:

test/ruby/test_symbol.rb (working copy)
276 276
  def test_symbol_fstr_leak
277 277
    bug10686 = '[ruby-core:67268] [Bug #10686]'
278 278
    x = 0
279
    assert_no_memory_leak([], '', <<-"end;", bug10686, limit: 1.71)
280
      200_000.times { |i| i.to_s.to_sym }
279
    assert_no_memory_leak([], '200_000.times { |i| i.to_s.to_sym }; GC.start', <<-"end;", bug10686, limit: 1.71, rss: true)
280
      200_000.times { |i| (i + 200_000).to_s.to_sym }
281 281
    end;
282 282
  end
283 283