summaryrefslogtreecommitdiffstats
path: root/tests/error.test
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2013-09-20 13:02:29 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2013-09-20 13:02:29 (GMT)
commit604f1eba04ed1c06a006712d43462b7ad6d7ce45 (patch)
treebf68b0b0a6c8342c24a522435cd2cf797929427a /tests/error.test
parent9baee07d38ea836934fe3776ae101d3319301a10 (diff)
parentc874899e9c1e4f38969f972f9fd477d3c9c8baeb (diff)
downloadtcl-604f1eba04ed1c06a006712d43462b7ad6d7ce45.zip
tcl-604f1eba04ed1c06a006712d43462b7ad6d7ce45.tar.gz
tcl-604f1eba04ed1c06a006712d43462b7ad6d7ce45.tar.bz2
merge trunk
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