Overview
| Artifact ID: | 8d75a9105c7ebb695d4f645f0532b172dd534a17 |
|---|---|
| Ticket: | 1397843fffffffffffffffffffffffffffffffff
write trace on ::errorInfo is broken |
| User & Date: | pcmacdon on 2006-01-07 07:36:04 |
Changes
- icomment:
Logged In: YES user_id=190660 Following is a minimal script for testing the write trace on errorInfo. On 8.5a3 it should output: Failed To Intercepted Error: While others should output: Succeed In Intercept Error: BadProc BadProc BadProc namespace Converting to a tcltest script should be trivial. ######################################### namespace eval eitest { set caught 0 set cmds {} proc EIWrite args { variable caught variable cmds set cmd [info level -1] set c1 [lindex $cmd 0] lappend cmds $c1 if {[string match *BadProc $c1]} { set caught 1 } } trace variable ::errorInfo w [namespace current]::EIWrite proc BadProc args { set i a incr i } catch {BadProc} if {$caught} { puts "Succeed In Intercept Error: $cmds" } else { puts "Failed To Intercepted Error: $cmds" } } - login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"