summaryrefslogtreecommitdiffstats
path: root/tests/error.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-16 18:59:14 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-16 18:59:14 (GMT)
commitb0e7980ba4b61bfc9867143b3a08fe0d74894690 (patch)
treebeaad334c814a35e3e90e6297ed8886ee837c853 /tests/error.test
parentee5dada68d84581a9b0c3ac970c11b862f0eb186 (diff)
parentfe8ae4eafcd82339318ba2c288431d00bbee06d9 (diff)
downloadtcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.zip
tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.gz
tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.bz2
merge trunk; update changes
Diffstat (limited to 'tests/error.test')
-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