summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-08-03 20:06:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-08-03 20:06:47 (GMT)
commit569005aa5248cfbd40d130d89bed5eb16e4d7a9f (patch)
treee5ac493289f2a5cb17977a1bc1b3b76d08f7ea5d /tests
parentab5c3c96ae0986e82a8b19544545609110e5a6a1 (diff)
downloadtcl-569005aa5248cfbd40d130d89bed5eb16e4d7a9f.zip
tcl-569005aa5248cfbd40d130d89bed5eb16e4d7a9f.tar.gz
tcl-569005aa5248cfbd40d130d89bed5eb16e4d7a9f.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 4467492..920238c 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.52 2010/03/09 21:15:19 andreas_kupries Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.53 2010/08/03 20:06:47 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -2005,6 +2005,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.