ruby-changes:60292
From: Nobuyoshi <ko1@a...>
Date: Wed, 4 Mar 2020 21:01:53 +0900 (JST)
Subject: [ruby-changes:60292] 502d9bcd36 (master): Fixed never-defined symbol name
https://git.ruby-lang.org/ruby.git/commit/?id=502d9bcd36 From 502d9bcd36a6cd31e925de00bbae861bfe3f78fd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 4 Mar 2020 21:00:17 +0900 Subject: Fixed never-defined symbol name diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb index a58d7af..4a6bc6c 100644 --- a/test/fiddle/test_function.rb +++ b/test/fiddle/test_function.rb @@ -98,7 +98,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_function.rb#L98 end def test_no_memory_leak - prep = 'r = Fiddle::Function.new(Fiddle.dlopen(nil)["rb_obj_frozen"], [Fiddle::TYPE_UINTPTR_T], Fiddle::TYPE_UINTPTR_T); a = "a"' + prep = 'r = Fiddle::Function.new(Fiddle.dlopen(nil)["rb_obj_frozen_p"], [Fiddle::TYPE_UINTPTR_T], Fiddle::TYPE_UINTPTR_T); a = "a"' code = 'begin r.call(a); rescue TypeError; end' assert_no_memory_leak(%w[-W0 -rfiddle], "#{prep}\n1000.times{#{code}}", "10_000.times {#{code}}", limit: 1.2) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/