summaryrefslogtreecommitdiffstats
path: root/tests/trace.test
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2007-08-09 12:20:03 (GMT)
committermsofer <msofer@noemail.net>2007-08-09 12:20:03 (GMT)
commit2773b63d13a700cce2202e1489e92235acdd4651 (patch)
tree6a044cff1f717e9615f3588d0aa24be02f7fa9e5 /tests/trace.test
parent47630cc8d8154bb879282f1f4136964a9ace9cf0 (diff)
downloadtcl-2773b63d13a700cce2202e1489e92235acdd4651.zip
tcl-2773b63d13a700cce2202e1489e92235acdd4651.tar.gz
tcl-2773b63d13a700cce2202e1489e92235acdd4651.tar.bz2
* generic/tclExecute.c (INST_STORE_ARRAY):
* tests/trace.test (trace-2.6): whole array write traces on compiled local variables were not firing [Bug 1770591] FossilOrigin-Name: f9ac70f020b37af88913b6463780bda27e5c5148
Diffstat (limited to 'tests/trace.test')
-rw-r--r--tests/trace.test18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test
index a736228..c2d7b17 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.56 2007/06/27 18:21:52 dgp Exp $
+# RCS: @(#) $Id: trace.test,v 1.57 2007/08/09 12:20:08 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -231,6 +231,22 @@ test trace-2.5 {trace variable writes} {
unset x
set info
} {}
+test trace-2.6 {trace variable writes on compiled local} {
+ #
+ # Check correct function of whole array traces on compiled local
+ # arrays [Bug 1770591]. The corresponding function for read traces is
+ # already indirectly tested in trace-1.7
+ #
+ catch {unset x}
+ set info {}
+ proc p {} {
+ trace add variable x write traceArray
+ set x(X) willy
+ }
+ p
+ set info
+} {x X write 0 willy}
+
# append no longer triggers read traces when fetching the old values of
# variables before doing the append operation. However, lappend _does_