mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed never-defined symbol name
This commit is contained in:
parent
95f387f61a
commit
502d9bcd36
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ module Fiddle
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue