summaryrefslogtreecommitdiffstats
path: root/tests/pkg.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-11-18 19:13:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-11-18 19:13:46 (GMT)
commit0487721e381e7cc22be51ec6fdcd2b83dd629297 (patch)
tree48bc8e6c384103e755e9b6a2b5807a45ad5f314c /tests/pkg.test
parent1af23392dd3eb0103a5f38c248eceecc5a86ac63 (diff)
downloadtcl-0487721e381e7cc22be51ec6fdcd2b83dd629297.zip
tcl-0487721e381e7cc22be51ec6fdcd2b83dd629297.tar.gz
tcl-0487721e381e7cc22be51ec6fdcd2b83dd629297.tar.bz2
more tests
Diffstat (limited to 'tests/pkg.test')
-rw-r--r--tests/pkg.test18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/pkg.test b/tests/pkg.test
index 5d6d46f..fb27d34 100644
--- a/tests/pkg.test
+++ b/tests/pkg.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: pkg.test,v 1.14 2005/11/08 18:26:59 dgp Exp $
+# RCS: @(#) $Id: pkg.test,v 1.15 2005/11/18 19:13:46 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -352,6 +352,22 @@ test pkg-2.34 {Tcl_PkgRequire: consistent return values (1162286)} -setup {
} -cleanup {
package forget foo
} -returnCodes error -match glob -result {attempt to provide package * failed:*}
+test pkg-2.34.1 {Tcl_PkgRequire: consistent return values (1162286)} -setup {
+ package forget foo
+} -body {
+ package ifneeded foo 1.1 {package provide foo 1}
+ package require foo 1
+} -cleanup {
+ package forget foo
+} -returnCodes error -match glob -result {attempt to provide package * failed:*}
+test pkg-2.34.2 {Tcl_PkgRequire: consistent return values (1162286)} -setup {
+ package forget foo
+} -body {
+ package ifneeded foo 1.1 {package provide foo 1}
+ package require foo 1.1
+} -cleanup {
+ package forget foo
+} -returnCodes error -match glob -result {attempt to provide package * failed:*}
test pkg-2.35 {Tcl_PkgRequire: consistent return values (1162286)} -setup {
package forget foo
} -body {