diff options
author | dgp <dgp@users.sourceforge.net> | 2004-11-15 21:14:28 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-11-15 21:14:28 (GMT) |
commit | 2137f75a0e2bd2dba76b4b82a50d26eea8b2b1d1 (patch) | |
tree | 9aff32399cb7d802f6085a28a3175e741bfdc985 /tests | |
parent | 3bef8b50f37c4ecdbd789f4a6e7a9fcd2a078ef3 (diff) | |
download | tcl-2137f75a0e2bd2dba76b4b82a50d26eea8b2b1d1.zip tcl-2137f75a0e2bd2dba76b4b82a50d26eea8b2b1d1.tar.gz tcl-2137f75a0e2bd2dba76b4b82a50d26eea8b2b1d1.tar.bz2 |
* generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which failed
* tests/trace.test (trace-33.1): to permit a variable trace
created with [trace variable] to be destroyed with [trace remove].
Thanks to Keith Vetter for the report.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/trace.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test index 6475aed..322f761 100644 --- a/tests/trace.test +++ b/tests/trace.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: trace.test,v 1.26.2.3 2003/09/29 22:03:44 dgp Exp $ +# RCS: @(#) $Id: trace.test,v 1.26.2.4 2004/11/15 21:14:34 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -2132,6 +2132,13 @@ test trace-32.1 { set result } [list [list delete foo]] +test trace-33.1 {variable match with remove variable} { + unset -nocomplain x + trace variable x w foo + trace remove variable x write foo + llength [trace info variable x] +} 0 + # Delete procedures when done, so we don't clash with other tests # (e.g. foobar will clash with 'unknown' tests). catch {rename foobar {}} |