diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2010-06-02 23:36:23 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2010-06-02 23:36:23 (GMT) |
commit | 5c5e3f51ea23ae06e71dd6b272376ed8a833aa84 (patch) | |
tree | e0ae05f51b24282b7f9a8240cff13435db359108 /tests/error.test | |
parent | 862cbfbc4c58e28e598535335bad2514e5bc835f (diff) | |
download | tcl-5c5e3f51ea23ae06e71dd6b272376ed8a833aa84.zip tcl-5c5e3f51ea23ae06e71dd6b272376ed8a833aa84.tar.gz tcl-5c5e3f51ea23ae06e71dd6b272376ed8a833aa84.tar.bz2 |
Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel offsets no longer overestimated.
Diffstat (limited to 'tests/error.test')
-rw-r--r-- | tests/error.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/error.test b/tests/error.test index 515d064..e30fd50 100644 --- a/tests/error.test +++ b/tests/error.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: error.test,v 1.32 2010/05/31 22:58:56 ferrieux Exp $ +# RCS: @(#) $Id: error.test,v 1.33 2010/06/02 23:36:26 ferrieux Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -174,13 +174,13 @@ test error-4.6 {errorstack via info } -body { proc g x {error G:$x} catch {f 12} info errorstack -} -match glob -result {CALL {g 1212} CALL {f 12} UP 3} +} -match glob -result {CALL {g 1212} CALL {f 12} UP 1} test error-4.7 {errorstack via options dict } -body { proc f x {g $x$x} proc g x {error G:$x} catch {f 12} m d dict get $d -errorstack -} -match glob -result {CALL {g 1212} CALL {f 12} UP 3} +} -match glob -result {CALL {g 1212} CALL {f 12} UP 1} # Errors in error command itself @@ -244,7 +244,7 @@ test error-6.10 {catch must reset errorstack} -body { catch {f 13} set e2 [info errorstack] list $e1 $e2 -} -match glob -result {{CALL {g 1212} CALL {f 12} UP 3} {CALL {g 1313} CALL {f 13} UP 3}} +} -match glob -result {{CALL {g 1212} CALL {f 12} UP 1} {CALL {g 1313} CALL {f 13} UP 1}} test error-7.1 {Bug 1397843} -body { variable cmds |