diff options
author | dgp <dgp@users.sourceforge.net> | 2004-09-30 23:06:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-09-30 23:06:47 (GMT) |
commit | a5b7e1af2aad6b044ed0c093d8f4d27f68f1497a (patch) | |
tree | 80cd1a43eaad19a6b5ca302dc244897f6602805b /tests/var.test | |
parent | 36fd8cc0959204088d97c32156f269faaaca2402 (diff) | |
download | tcl-a5b7e1af2aad6b044ed0c093d8f4d27f68f1497a.zip tcl-a5b7e1af2aad6b044ed0c093d8f4d27f68f1497a.tar.gz tcl-a5b7e1af2aad6b044ed0c093d8f4d27f68f1497a.tar.bz2 |
* generic/tclBasic.c (Tcl_AddObjErrorInfo): More re-organization
* generic/tclCmdAH.c (Tcl_ErrorObjCmd): of the management of
* generic/tclCmdMZ.c (TclProcessReturn): the errorCode value.
* tests/error.test (error-6.4-9):
* generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ified
* tests/namespace.test (namespace-8.5,6): the save/restore
of ::errorInfo and ::errorCode during global namespace teardown.
Revised the comment to clarify why this is done, and added tests
that will fail if this is not done.
* generic/tclResult.c (TclTransferResult): Added safety
checks so that unexpected undefined ::errorInfo or ::errorCode
will not lead to a segfault.
* generic/tclTrace.c (TclCallVarTraces): Save/restore the flag
* tests/var.test (var-16.1): values that define part of the
interpreter state during variable traces. [Bug 10381021].
Diffstat (limited to 'tests/var.test')
-rw-r--r-- | tests/var.test | 9 |
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} |