summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-09 17:46:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-09 17:46:45 (GMT)
commitf3283e67a3037b34b0a3811bab9e09333c13d8f4 (patch)
treebacf44f260810bea56e8860043d991e4ae62bb30 /tests
parent8e7747599e225b9ef8650e9fd0426318978db316 (diff)
downloadtcl-f3283e67a3037b34b0a3811bab9e09333c13d8f4.zip
tcl-f3283e67a3037b34b0a3811bab9e09333c13d8f4.tar.gz
tcl-f3283e67a3037b34b0a3811bab9e09333c13d8f4.tar.bz2
Repair another "impossible" test and the segfault it reveals.
Diffstat (limited to 'tests')
-rw-r--r--tests/ioTrans.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ioTrans.test b/tests/ioTrans.test
index 7f4f7f0..c40621b 100644
--- a/tests/ioTrans.test
+++ b/tests/ioTrans.test
@@ -1034,7 +1034,7 @@ test iortrans-11.1 {origin interpreter of moved transform destroyed during acces
# Magic to get the test* commands in the slaves
load {} Tcltest $ida
load {} Tcltest $idb
-} -constraints {testchannel impossible} -match glob -body {
+} -constraints {testchannel} -match glob -body {
# Set up channel in thread
set chan [interp eval $ida $helperscript]
set chan [interp eval $ida {
@@ -1042,14 +1042,14 @@ test iortrans-11.1 {origin interpreter of moved transform destroyed during acces
handle.initialize clear drain flush limit? read write
handle.finalize
lappend ::res $args
- # Destroy interpreter during channel access. Actually not
- # possible for an interp to destroy itself.
- interp delete {}
- return}
+ # Destroy interpreter during channel access.
+ suicide
+ }
set chan [chan push [tempchan] foo]
fconfigure $chan -buffering none
set chan
}]
+ interp alias $ida suicide {} interp delete $ida
# Move channel to 2nd thread, transform goes with it.
interp eval $ida [list testchannel cut $chan]
interp eval $idb [list testchannel splice $chan]