summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-09-24 01:14:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-09-24 01:14:38 (GMT)
commitd1fefb7ec79f96d245eb6d5c88159ca70251ccd2 (patch)
tree1df679b5cc067e181ce58de48df471961b5d2fec /tests/namespace.test
parent910d08025cdac3f37d7cf798cee2b634f6ebd711 (diff)
downloadtcl-d1fefb7ec79f96d245eb6d5c88159ca70251ccd2.zip
tcl-d1fefb7ec79f96d245eb6d5c88159ca70251ccd2.tar.gz
tcl-d1fefb7ec79f96d245eb6d5c88159ca70251ccd2.tar.bz2
* generic/tclBasic.c: Corrections to the 2004-09-21 commit
* generic/tclExecute.c: regarding ERR_ALREADY_LOGGED. That commit * generic/tclNamesp.c: caused Tk test send-10.7 to fail. Added * tests/namespace.test (25.7,8): tests in the Tcl test suite * tests/pkg.test (2.25,26): to catch this error without the aid of Tk in the future.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 6338316..e11cfc6 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.37 2004/09/13 10:49:19 dkf Exp $
+# RCS: @(#) $Id: namespace.test,v 1.38 2004/09/24 01:14:43 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -950,6 +950,18 @@ test namespace-25.6 {NamespaceEvalCmd, error in eval'd script} {
(in namespace eval "::test_ns_1" script line 1)
invoked from within
"namespace eval test_ns_1 {xxxx}"}}
+test namespace-25.7 {NamespaceEvalCmd, error in eval'd script} {
+ list [catch {namespace eval test_ns_1 {error foo bar baz}} msg] $msg $errorInfo
+} {1 foo {bar
+ (in namespace eval "::test_ns_1" script line 1)
+ invoked from within
+"namespace eval test_ns_1 {error foo bar baz}"}}
+test namespace-25.8 {NamespaceEvalCmd, error in eval'd script} {
+ list [catch {namespace eval test_ns_1 error foo bar baz} msg] $msg $errorInfo
+} {1 foo {bar
+ (in namespace eval "::test_ns_1" script line 1)
+ invoked from within
+"namespace eval test_ns_1 error foo bar baz"}}
catch {unset v}
test namespace-26.1 {NamespaceExportCmd, no args and new ns} {