Tcl Source Code

Artifact [9919c47231]
Login

Artifact 9919c472319ba09603888e511356ea5358eabbd6:

Attachment "trace.patch" to ticket [1773040fff] added by mpc_janssen 2007-08-14 02:15:17.
diff --git a/tests/trace.test b/tests/trace.test
index c2d7b17..4c87e09 100644
--- a/tests/trace.test
+++ b/tests/trace.test
@@ -246,6 +246,15 @@ test trace-2.6 {trace variable writes on compiled local} {
     p
     set info
 } {x X write 0 willy}
+test trace-2.7 {trace variable writes on errorInfo} {
+   #
+   # Check correct behaviour of write traces on errorInfo.
+   # [Bug 1773040]
+   trace add variable ::errorInfo write traceScalar
+   catch {set dne}
+   trace remove variable ::errorInfo write traceScalar
+   lrange [set info] 0 2
+} {errorInfo {} write}
 
 
 # append no longer triggers read traces when fetching the old values of