summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-08-03 20:06:34 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-08-03 20:06:34 (GMT)
commitea59ca0ca592cd2807758b50b52f109e80274450 (patch)
tree4b5c53bcd1c1c51ea64094cd64ef305201355208 /tests
parentda79f427f85ace17a26ef3b193801e43db893655 (diff)
downloadtcl-ea59ca0ca592cd2807758b50b52f109e80274450.zip
tcl-ea59ca0ca592cd2807758b50b52f109e80274450.tar.gz
tcl-ea59ca0ca592cd2807758b50b52f109e80274450.tar.bz2
Test iocmd-32.2 tests for Bug 3034840
Diffstat (limited to 'tests')
-rw-r--r--tests/ioCmd.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 999e25c..99d6af3 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: ioCmd.test,v 1.36.2.8 2010/03/09 21:13:13 andreas_kupries Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.36.2.9 2010/08/03 20:06:34 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1970,6 +1970,19 @@ test iocmd-32.1 {origin interpreter of moved channel destroyed during access} -m
} -constraints {testchannel impossible} \
-result {Owner lost}
+test iocmd-32.2 {delete interp of reflected chan} {
+ # Bug 3034840
+ # Run this test in an interp with memory debugging to panic
+ # on the double free
+ interp create slave
+ slave eval {
+ proc no-op args {}
+ proc driver {sub args} {return {initialize finalize watch read}}
+ chan event [chan create read driver] readable no-op
+ }
+ interp delete slave
+} {}
+
# ### ### ### ######### ######### #########
## Same tests as above, but exercising the code forwarding and
## receiving driver operations to the originator thread.