diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-05 12:35:24 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-05 12:35:24 (GMT) |
commit | b3460347ff35c128172c444ec354fc16735966be (patch) | |
tree | b082adbabe0891b51eda8c866612fef1780ef63f /tests | |
parent | f16149f5a641a30843d2bb4e3dd2734e50ecbe14 (diff) | |
parent | 829487df7256479f7042811865db78b33f6a89d3 (diff) | |
download | tcl-b3460347ff35c128172c444ec354fc16735966be.zip tcl-b3460347ff35c128172c444ec354fc16735966be.tar.gz tcl-b3460347ff35c128172c444ec354fc16735966be.tar.bz2 |
Merge commits to the correct branch -- trunk
Diffstat (limited to 'tests')
-rw-r--r-- | tests/error.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/error.test b/tests/error.test index 06f8eca..0de644c 100644 --- a/tests/error.test +++ b/tests/error.test @@ -182,6 +182,16 @@ test error-4.7 {errorstack via options dict } -body { catch {f 12} m d dict get $d -errorstack } -match glob -result {INNER * CALL {g 1212} CALL {f 12} UP 1} +test error-4.8 {errorstack from exec traces} -body { + proc foo args {} + proc goo {} foo + trace add execution foo enter {error bar;#} + catch goo m d + dict get $d -errorstack +} -cleanup { + rename goo {}; rename foo {} + unset -nocomplain m d +} -result {INNER {error bar} CALL goo UP 1} # Errors in error command itself |