summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-06-12 12:33:57 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-06-12 12:33:57 (GMT)
commita416ef038cf5bc87716558a4dce7b163ebcd6697 (patch)
tree0d74aadaf31ab1b820eea1376209fdbff67e6361 /tests/namespace.test
parentbf56a09707e69cf1c2ca8a5cec6617c0dca24d57 (diff)
downloadtcl-a416ef038cf5bc87716558a4dce7b163ebcd6697.zip
tcl-a416ef038cf5bc87716558a4dce7b163ebcd6697.tar.gz
tcl-a416ef038cf5bc87716558a4dce7b163ebcd6697.tar.bz2
Convert [info] into an ensemble command.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index f8433cc..3228d72 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.66 2007/03/12 19:10:50 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.67 2007/06/12 12:34:04 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -172,7 +172,10 @@ test namespace-7.6 {recursive Tcl_DeleteNamespace, no active call frames in ns}
} {}
test namespace-7.7 {Bug 1655305} -setup {
interp create slave
- slave hide info
+ # Can't invoke through the ensemble, since deleting the global namespace
+ # (indirectly, via deleting ::tcl) deletes the ensemble.
+ slave eval {rename ::tcl::Info_commands ::infocommands}
+ slave hide infocommands
slave eval {
proc foo {} {
namespace delete ::
@@ -180,7 +183,7 @@ test namespace-7.7 {Bug 1655305} -setup {
}
} -body {
slave eval foo
- slave invokehidden info commands
+ slave invokehidden infocommands
} -cleanup {
interp delete slave
} -result {}