summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-06-14 13:45:57 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-06-14 13:45:57 (GMT)
commit9480f190e5c0b49511894e60db3c34b9a7a81003 (patch)
tree8753974f9a48a1a793cb9bd53171a42b17f86238 /tests
parentcdd600c79b33458ca7ca7861563f1c6756e69ff6 (diff)
downloadtcl-9480f190e5c0b49511894e60db3c34b9a7a81003.zip
tcl-9480f190e5c0b49511894e60db3c34b9a7a81003.tar.gz
tcl-9480f190e5c0b49511894e60db3c34b9a7a81003.tar.bz2
Fix [Bug 1220058] and quash a bizarre case which generated a bogus error msg.
Thanks to Will Duquette for helping to track this one down.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index c611e9c..1cae7d9 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.44 2005/05/30 00:04:49 dkf Exp $
+# RCS: @(#) $Id: namespace.test,v 1.45 2005/06/14 13:46:04 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1924,6 +1924,19 @@ test namespace-49.1 {ensemble subcommand caching} -body {
rename c {}
rename x {}
}
+test namespace-49.2 {strange delete crash} -body {
+ namespace eval foo {namespace ensemble create -command ::bar}
+ trace add command ::bar delete DeleteTrace
+ proc DeleteTrace {old new op} {
+ trace remove command ::bar delete DeleteTrace
+ rename $old ""
+ # This next line caused a bus error in [Bug 1220058]
+ namespace delete foo
+ }
+ rename ::bar ""
+} -result "" -cleanup {
+ rename DeleteTrace ""
+}
test namespace-50.1 {ensembles affect proc arguments error messages} -body {
namespace ens cre -command a -map {b {bb foo}}