summaryrefslogtreecommitdiffstats
path: root/tests/ioCmd.test
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)
commitf84fb26257cc20c04ff24f7c777338a1b17b7758 (patch)
tree4b5c53bcd1c1c51ea64094cd64ef305201355208 /tests/ioCmd.test
parent9f536d032d259122a79696ec4d2cd102b946b9d7 (diff)
downloadtcl-f84fb26257cc20c04ff24f7c777338a1b17b7758.zip
tcl-f84fb26257cc20c04ff24f7c777338a1b17b7758.tar.gz
tcl-f84fb26257cc20c04ff24f7c777338a1b17b7758.tar.bz2
Test iocmd-32.2 tests for Bug 3034840
Diffstat (limited to 'tests/ioCmd.test')
-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.