Improved the swig_gc.rb interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ca5f54f668
commit
c1119d264a
3 changed files with 42 additions and 26 deletions
|
|
@ -17,11 +17,11 @@ require 'newobject2'
|
|||
|
||||
include Newobject2
|
||||
|
||||
GC.stats(Foo)
|
||||
GC.track_class = Foo
|
||||
GC.stats
|
||||
100.times { foo1 = makeFoo }
|
||||
GC.stats(Foo)
|
||||
GC.stats
|
||||
swig_assert( 'fooCount == 100', "but is #{fooCount}" )
|
||||
GC.start
|
||||
GC.stats(Foo)
|
||||
swig_assert( 'fooCount <= 1', "but is #{fooCount}" )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue