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:
Gonzalo Garramuno 2007-04-29 23:52:22 +00:00
commit c1119d264a
3 changed files with 42 additions and 26 deletions

View file

@ -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}" )