summaryrefslogtreecommitdiffstats
path: root/tests/trace.test
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2005-11-14 00:41:05 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2005-11-14 00:41:05 (GMT)
commit9264d5ca1bd013c78fc5f822303ce4c03bde8c74 (patch)
tree6ca36e542384ebbf3ca170a55c48aae2d07c3394 /tests/trace.test
parentd6c73ab77833ab9488ab9930031dd0851a931cb4 (diff)
downloadtcl-9264d5ca1bd013c78fc5f822303ce4c03bde8c74.zip
tcl-9264d5ca1bd013c78fc5f822303ce4c03bde8c74.tar.gz
tcl-9264d5ca1bd013c78fc5f822303ce4c03bde8c74.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]
Diffstat (limited to 'tests/trace.test')
-rw-r--r--tests/trace.test24
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 }