diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-07 21:19:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-07 21:19:47 (GMT) |
commit | 7d65b0f9b214a041c9007cf45220fe7c8a5c88f0 (patch) | |
tree | e37a1e5e986f7b58a0b5da2d438f30df452ee611 /tests/error.test | |
parent | 4bba36ca59c3760f9e2a593e8135aa6f8352919e (diff) | |
parent | 133768540d48de8f9bf0638fd9983178588bd18a (diff) | |
download | tcl-7d65b0f9b214a041c9007cf45220fe7c8a5c88f0.zip tcl-7d65b0f9b214a041c9007cf45220fe7c8a5c88f0.tar.gz tcl-7d65b0f9b214a041c9007cf45220fe7c8a5c88f0.tar.bz2 |
merge trunkbug_86ceb4e2b6
Diffstat (limited to 'tests/error.test')
-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 |