mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
objspace.c: newly added nodes
* ext/objspace/objspace.c (count_nodes): count also newly added nodes, and fix key for unknown node. patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a429c11e1
commit
b4a117f8d3
3 changed files with 13 additions and 2 deletions
|
@ -58,7 +58,9 @@ class TestObjSpace < Test::Unit::TestCase
|
|||
assert_equal(false, res.empty?)
|
||||
arg = {}
|
||||
ObjectSpace.count_nodes(arg)
|
||||
assert_equal(false, arg.empty?)
|
||||
assert_not_empty(arg)
|
||||
bug8014 = '[ruby-core:53130] [Bug #8014]'
|
||||
assert_empty(arg.select {|k, v| !(Symbol === k && Integer === v)}, bug8014)
|
||||
end
|
||||
|
||||
def test_count_tdata_objects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue