diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-31 22:29:45 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-31 22:29:45 (GMT) |
commit | d21830d6102251026eb770706ba3319f1cc24755 (patch) | |
tree | 6fb5a6887947a5210915f6a1c4699289863db712 /tests | |
parent | d4816fa0c5eb1cea8d0e924c3187887e2c96cd11 (diff) | |
download | tcl-d21830d6102251026eb770706ba3319f1cc24755.zip tcl-d21830d6102251026eb770706ba3319f1cc24755.tar.gz tcl-d21830d6102251026eb770706ba3319f1cc24755.tar.bz2 |
Plug method-related memory leaks pointed out by Miguel.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/oo.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/oo.test b/tests/oo.test index 087e786..a569b77 100644 --- a/tests/oo.test +++ b/tests/oo.test @@ -7,7 +7,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: oo.test,v 1.4 2008/05/31 11:42:20 dkf Exp $ +# RCS: @(#) $Id: oo.test,v 1.5 2008/05/31 22:29:46 dkf Exp $ package require TclOO 0.4 ;# Must match value in configure.in if {[lsearch [namespace children] ::tcltest] == -1} { @@ -65,6 +65,13 @@ test oo-0.4 {basic test of OO's ability to clean up its initial state} -body { foo destroy } } -constraints memory -result 0 +test oo-0.5 {testing literal leak on interp delete} memory { + leaktest { + interp create foo + foo eval {oo::object new} + interp delete foo + } +} 0 test oo-1.1 {basic test of OO functionality: no classes} { set result {} |