diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-02 18:47:07 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-02 18:47:07 (GMT) |
commit | bfee748b41a556c2c213d22b99ce12b156acb1d8 (patch) | |
tree | 27a8b5d15d20dd51cf3d1104f7512dc8638602fc /tests | |
parent | a01e0439ec88f4f83820d36da9ed018cc3b9ff00 (diff) | |
download | tcl-bfee748b41a556c2c213d22b99ce12b156acb1d8.zip tcl-bfee748b41a556c2c213d22b99ce12b156acb1d8.tar.gz tcl-bfee748b41a556c2c213d22b99ce12b156acb1d8.tar.bz2 |
Add test and improve errorInfo.bug_010f4162ef
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 |