diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/trace.test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test index d4a777f..b158c3a 100644 --- a/tests/trace.test +++ b/tests/trace.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: trace.test,v 1.38 2005/06/21 18:33:05 dgp Exp $ +# RCS: @(#) $Id: trace.test,v 1.39 2005/07/26 16:21:31 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -2237,6 +2237,17 @@ test trace-34.3 {Bug 1224585} { foo } {} +test trace-34.4 {Bug 1047286} { + variable x notrace + proc callback {old - -} { + variable x "$old exists" [namespace which -command $old]" + } + namespace eval ::foo {proc bar {} {}} + trace add command ::foo::bar delete [namespace code callback] + namespace delete ::foo + set x +} {::foo::bar exists: ::foo::bar} + test trace-35.1 {527164: Keep -errorinfo of traces} -setup { unset -nocomplain x y } -body { |