Added new tests.

Updated swig_gc interface to make it simpler.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-04-28 17:45:32 +00:00
commit 522403958e
5 changed files with 77 additions and 12 deletions

View file

@ -17,12 +17,11 @@ require 'newobject2'
include Newobject2
stats = nil
stats = GC.stats(stats, Foo)
GC.stats(Foo)
100.times { foo1 = makeFoo }
stats = GC.stats(stats, Foo)
GC.stats(Foo)
swig_assert( 'fooCount == 100', "but is #{fooCount}" )
GC.start
stats = GC.stats(stats, Foo)
GC.stats(Foo)
swig_assert( 'fooCount <= 1', "but is #{fooCount}" )