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
|
|
@ -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}" )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue