diff options
author | msofer <msofer@noemail.net> | 2005-11-14 00:41:04 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2005-11-14 00:41:04 (GMT) |
commit | 878d9867153afdd403f0ee3ca9a2553dae79026e (patch) | |
tree | 6ca36e542384ebbf3ca170a55c48aae2d07c3394 /tests/trace.test | |
parent | 4a8a2aa645318d9f1e3447f45cacfe667216fed8 (diff) | |
download | tcl-878d9867153afdd403f0ee3ca9a2553dae79026e.zip tcl-878d9867153afdd403f0ee3ca9a2553dae79026e.tar.gz tcl-878d9867153afdd403f0ee3ca9a2553dae79026e.tar.bz2 |
* generic/tclInt.h:
* generic/tclNamesp.c:
* tests/namespace.test: fix for bugs #1354540 and #1355942. The
new tests 7.3-6 and the modified 51.13 fail due to the unrelated
[Bug 1355342]
* tests/trace.test: added tests 20.13-16 for [Bug 1355342]
FossilOrigin-Name: 13ae37d83f9ca6c4d0bf2308503748c2aef1e2ae
Diffstat (limited to 'tests/trace.test')
-rw-r--r-- | tests/trace.test | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test index befb0c8..7009503 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.45 2005/11/07 10:17:59 msofer Exp $ +# RCS: @(#) $Id: trace.test,v 1.46 2005/11/14 00:41:06 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -1484,6 +1484,28 @@ test trace-20.12 {delete trace renames command} { list [info commands foo] [info commands bar] [info commands someothername] } {{} {} {}} +test trace-20.13 {rename trace discards result [Bug 1355342]} { + proc foo {} {} + trace add command foo rename {set w Aha!;#} + list [rename foo bar] [rename bar {}] +} {{} {}} +test trace-20.14 {rename trace discards error result [Bug 1355342]} { + proc foo {} {} + trace add command foo rename {error} + list [rename foo bar] [rename bar {}] +} {{} {}} +test trace-20.15 {delete trace discards result [Bug 1355342]} { + proc foo {} {} + trace add command foo delete {set w Aha!;#} + rename foo {} +} {} +test trace-20.16 {delete trace discards error result [Bug 1355342]} { + proc foo {} {} + trace add command foo delete {error} + rename foo {} +} {} + + proc foo {b} { set a $b } |