summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2001-11-29 19:38:48 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2001-11-29 19:38:48 (GMT)
commit9e3fea651cf621b8c1fa4e18d8004addf67d857d (patch)
tree7c5b9560811df5bfe91fe4ee366ce22ad2cb79a0
parent154cc5c0cecce13b094efe9673e002ca8445ea74 (diff)
downloadtcl-9e3fea651cf621b8c1fa4e18d8004addf67d857d.zip
tcl-9e3fea651cf621b8c1fa4e18d8004addf67d857d.tar.gz
tcl-9e3fea651cf621b8c1fa4e18d8004addf67d857d.tar.bz2
Modified test namespace-41.2, added 41.3
-rw-r--r--ChangeLog5
-rw-r--r--tests/namespace.test20
2 files changed, 22 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 645af85..fd01001 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2001-11-29 Miguel Sofer <msofer@users.sourceforge.net>
+ * tests/namespace.test: modified namespace-41.2, added 41.3
+ {knownbug} after discussion with Don Porter and Kevin Kenny.
+
+2001-11-29 Miguel Sofer <msofer@users.sourceforge.net>
+
* tests/namespace.test: added namespace-41.2, a simpler test for
[Bug: 231259]
diff --git a/tests/namespace.test b/tests/namespace.test
index d30df8b..6c2ba40 100644
--- a/tests/namespace.test
+++ b/tests/namespace.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: namespace.test,v 1.19 2001/11/29 18:14:44 msofer Exp $
+# RCS: @(#) $Id: namespace.test,v 1.20 2001/11/29 19:38:48 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1155,6 +1155,20 @@ test namespace-41.1 {Shadowing byte-compiled commands, Bug: 231259} {
test namespace-41.2 {Shadowing byte-compiled commands, Bug: 231259} {
set res {}
+ namespace eval ns {}
+ proc ns::a {i} {
+ variable b
+ proc set args {return "New proc is called"}
+ return [set b $i]
+ }
+ ns::a 1
+ set res [ns::a 2]
+ namespace delete ns
+ set res
+} {New proc is called}
+
+test namespace-41.3 {Shadowing byte-compiled commands, Bug: 231259} {knownbug} {
+ set res {}
namespace eval ns {
variable b 0
}
@@ -1165,10 +1179,10 @@ test namespace-41.2 {Shadowing byte-compiled commands, Bug: 231259} {
return [set b $i]
}
- set res [list [ns::a 1] [ns::a 2] $ns::b]
+ set res [list [ns::a 1] $ns::b]
namespace delete ns
set res
-} {1 {New proc is called} 1}
+} {{New proc is called} 0}
# cleanup
catch {rename cmd1 {}}