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:
parent
fd79f15521
commit
522403958e
5 changed files with 77 additions and 12 deletions
|
|
@ -24,12 +24,11 @@ require 'newobject1'
|
|||
include Newobject1
|
||||
|
||||
|
||||
stats = nil
|
||||
stats = GC.stats(stats, Foo)
|
||||
GC.stats(Foo)
|
||||
100.times { foo1 = Foo.makeFoo; foo2 = foo1.makeMore }
|
||||
stats = GC.stats(stats, Foo)
|
||||
GC.stats(Foo)
|
||||
swig_assert( 'Foo.fooCount == 200', "but is #{Foo.fooCount}" )
|
||||
GC.start
|
||||
stats = GC.stats(stats, Foo)
|
||||
GC.stats(Foo)
|
||||
swig_assert( 'Foo.fooCount <= 2', "but is #{Foo.fooCount}" )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue