summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-12-22 18:27:23 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-12-22 18:27:23 (GMT)
commit1614457e38312b8180cd9ef843bffcc6a45a14cc (patch)
tree407dbdaa8a9c3510bded84f507f44e82a466c534 /tests
parent9766a76000f4b621c0fa1ef9f7ad6d41d0f36a74 (diff)
downloadtcl-1614457e38312b8180cd9ef843bffcc6a45a14cc.zip
tcl-1614457e38312b8180cd9ef843bffcc6a45a14cc.tar.gz
tcl-1614457e38312b8180cd9ef843bffcc6a45a14cc.tar.bz2
[593baa032c] Possible fix (with test) for segfault in superclass teardown.
Diffstat (limited to 'tests')
-rw-r--r--tests/oo.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/oo.test b/tests/oo.test
index 2112f10..ca5c7f9 100644
--- a/tests/oo.test
+++ b/tests/oo.test
@@ -3671,6 +3671,13 @@ test oo-35.2 {Bug 9d61624b3d: Empty superclass must not cause crash} -setup {
unset -nocomplain result
fruitMetaclass destroy
} -result {::appleClass ::orange ::oo::class ::oo::class 1 1 ::appleClass ::pear}
+test oo-35.3 {Bug 593baa032c: superclass list teardown} {
+ # Bug makes this crash, especially with mem-debugging on
+ oo::class create B {}
+ oo::class create D {superclass B}
+ namespace eval [info object namespace D] [list [namespace which B] destroy]
+} {}
+
cleanupTests
return