summaryrefslogtreecommitdiffstats
path: root/tests/obj.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-06-18 15:06:43 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-06-18 15:06:43 (GMT)
commitde76c226887e818f393568bf07dd6fdebd8347de (patch)
treed035ee844304ceb13d6438f2bb63225f64ff7766 /tests/obj.test
parent777c141c6fdd240919b16f00181b402a78e6d9e3 (diff)
downloadtcl-de76c226887e818f393568bf07dd6fdebd8347de.zip
tcl-de76c226887e818f393568bf07dd6fdebd8347de.tar.gz
tcl-de76c226887e818f393568bf07dd6fdebd8347de.tar.bz2
Added tests for deep-object-freeing
Diffstat (limited to 'tests/obj.test')
-rw-r--r--tests/obj.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/obj.test b/tests/obj.test
index a6bb192..da7ee7d 100644
--- a/tests/obj.test
+++ b/tests/obj.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: obj.test,v 1.8 2004/05/19 20:15:32 dkf Exp $
+# RCS: @(#) $Id: obj.test,v 1.9 2004/06/18 15:06:43 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -588,6 +588,14 @@ test obj-31.6 {regenerate string rep of "end--bigInteger"} {testobj nonPortable}
testobj invalidateStringRep 1
} end--2147483648
+test obj-32.1 {freeing very large object trees} {
+ set x {}
+ for {set i 0} {$i<100000} {incr i} {
+ set x [list $x {}]
+ }
+ unset x
+} {}
+
if {[testConstraint testobj]} {
testobj freeallvars
}