diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:38:36 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:38:36 (GMT) |
commit | 819b87f1df825dced8c2a40b709fc22a997b8fa2 (patch) | |
tree | 7fb8ece93ba6fe8611ac8c929ef0f2115f3f18a5 /tests/event.test | |
parent | 99d3f3c9f3dc5752e4887e6dec6661fabd80cd50 (diff) | |
parent | b36880503c6464eb0404613b2e6f0ea9605d33ef (diff) | |
download | tcl-819b87f1df825dced8c2a40b709fc22a997b8fa2.zip tcl-819b87f1df825dced8c2a40b709fc22a997b8fa2.tar.gz tcl-819b87f1df825dced8c2a40b709fc22a997b8fa2.tar.bz2 |
[16828b3744] [vwait] *must* successfully undo its variable trace, or else
it risks corrupting memory. Namespace teardown complexities were giving
the traces an opportunity to survive. Added another (arguably better)
Tcl_UntraceVar() call to be sure we avoid this problem.
Diffstat (limited to 'tests/event.test')
-rw-r--r-- | tests/event.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/event.test b/tests/event.test index 0d1b06c..207c799 100644 --- a/tests/event.test +++ b/tests/event.test @@ -583,6 +583,34 @@ test event-11.6 {Tcl_VwaitCmd procedure: round robin scheduling, same source} { removeFile $test2file list $x $y $z } {3 3 done} +test event-11.7 {Bug 16828b3744} { + after idle { + set ::t::v 1 + namespace delete ::t + } + namespace eval ::t { + vwait ::t::v + } +} {} +test event-11.8 {Bug 16828b3744} -setup { + oo::class create A { + variable continue + + method start {} { + after idle [self] destroy + + set continue 0 + vwait [namespace current]::continue + } + destructor { + set continue 1 + } + } +} -body { + [A new] start +} -cleanup { + A destroy +} -result {} test event-12.1 {Tcl_UpdateCmd procedure} -returnCodes error -body { update a b |