mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fiddle/test_closure.rb (test_memsize): test for r29635.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b48289bb7
commit
6c416e96f0
1 changed files with 7 additions and 0 deletions
|
@ -45,5 +45,12 @@ module Fiddle
|
|||
func = Function.new(cb, [TYPE_INT], TYPE_INT)
|
||||
assert_equal 11, func.call(11)
|
||||
end
|
||||
|
||||
def test_memsize
|
||||
require 'objspace'
|
||||
bug = '[ruby-dev:42480]'
|
||||
n = 10000
|
||||
assert_equal(n, n.times {ObjectSpace.memsize_of(Closure.allocate)}, bug)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue