diff options
author | dgp <dgp@users.sourceforge.net> | 2005-11-08 18:28:56 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-11-08 18:28:56 (GMT) |
commit | 50aa9cf6430fa3273369544087dea5fdf761e7a4 (patch) | |
tree | 0ec2a14e4ecc1b7e7511316b20a49da68dd4f7fe /tests/namespace.test | |
parent | b896a6e4fe8cb265e2149fddf237aaec9f9c9c80 (diff) | |
download | tcl-50aa9cf6430fa3273369544087dea5fdf761e7a4.zip tcl-50aa9cf6430fa3273369544087dea5fdf761e7a4.tar.gz tcl-50aa9cf6430fa3273369544087dea5fdf761e7a4.tar.bz2 |
* generic/tclPkg.c: Corrected inconsistencies in the value returned
* tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned
values will always agree with what is stored in the package database.
This way repeated calls to Tcl_PkgRequire(Ex) have the same results.
Thanks to Hemang Lavana. [Bug 1162286].
* tests/namespace.test (25.7,8): Backport test of knownBug.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r-- | tests/namespace.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 311f3af..9887ddc 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.21.2.6 2005/07/05 17:27:09 dgp Exp $ +# RCS: @(#) $Id: namespace.test,v 1.21.2.7 2005/11/08 18:28:56 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -961,6 +961,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} knownBug { + 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} { |