diff options
author | dgp <dgp@users.sourceforge.net> | 2014-05-09 13:19:30 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-05-09 13:19:30 (GMT) |
commit | d28769d37874fb207bec2ac0d3c8206c7ab566f8 (patch) | |
tree | 5f3e8c4f2ade224a0ae31459b7b3561f00cfcaaf /tests/ioCmd.test | |
parent | 777fc1f403ce2dd7dcf46cc42a059b0fe6363882 (diff) | |
download | tcl-d28769d37874fb207bec2ac0d3c8206c7ab566f8.zip tcl-d28769d37874fb207bec2ac0d3c8206c7ab566f8.tar.gz tcl-d28769d37874fb207bec2ac0d3c8206c7ab566f8.tar.bz2 |
Test iocmd-32.1 is not "impossible" but after writing it properly it
does segfault trying to use a deleted interp. Fixed.
Diffstat (limited to 'tests/ioCmd.test')
-rw-r--r-- | tests/ioCmd.test | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test index bb133f9..5a76d48 100644 --- a/tests/ioCmd.test +++ b/tests/ioCmd.test @@ -2038,13 +2038,13 @@ test iocmd-32.1 {origin interpreter of moved channel destroyed during access} -m proc foo {args} { oninit; onfinal; track; # destroy interpreter during channel access - # Actually not possible for an interp to destroy itself. - interp delete {} - return} + suicide + } set chan [chan create {r w} foo] fconfigure $chan -buffering none set chan }] + interp alias $ida suicide {} interp delete $ida # Move channel to 2nd thread. interp eval $ida [list testchannel cut $chan] @@ -2063,8 +2063,7 @@ test iocmd-32.1 {origin interpreter of moved channel destroyed during access} -m set res }] set res -} -constraints {testchannel impossible} \ - -result {Owner lost} +} -constraints {testchannel} -result {Owner lost} test iocmd-32.2 {delete interp of reflected chan} { # Bug 3034840 |