summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test
index df6b491..df9d553 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -14,7 +14,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: var.test,v 1.25 2004/05/19 20:33:11 dkf Exp $
+# RCS: @(#) $Id: var.test,v 1.26 2004/09/30 23:06:49 dgp Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -695,6 +695,13 @@ test var-15.1 {segfault in [unset], [Bug 735335]} {
} {}
+test var-16.1 {CallVarTraces: save/restore interp error state} {
+ trace add variable errorCode write { ;#}
+ catch {error foo bar baz}
+ trace remove variable errorCode write { ;#}
+ set errorInfo
+} bar
+
catch {namespace delete ns}
catch {unset arr}
catch {unset v}