summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-05 12:31:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-05 12:31:46 (GMT)
commitdb738e7756c64153300dcffb80a3d34ede624623 (patch)
treeb082adbabe0891b51eda8c866612fef1780ef63f /tests
parentc6bb98e76328014f65ff65473404b5467cdd3823 (diff)
parent2c3dbea378135685d72d688a6ee0fffe633d5376 (diff)
downloadtcl-db738e7756c64153300dcffb80a3d34ede624623.zip
tcl-db738e7756c64153300dcffb80a3d34ede624623.tar.gz
tcl-db738e7756c64153300dcffb80a3d34ede624623.tar.bz2
[010f4162ef] Repair effect of trace errors on -errorinfo and -errorstack.
Diffstat (limited to 'tests')
-rw-r--r--tests/error.test10
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