summaryrefslogtreecommitdiffstats
path: root/tests/load.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-07 08:03:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-07 08:03:10 (GMT)
commitc7943be5f2af9c61fd59c86c6d96840896fdc1da (patch)
treece8aaef67aa0fe96f08821954b71216a91a10eea /tests/load.test
parent3bbffed01d2dbaa523b752cf39da3868869ab30a (diff)
downloadtcl-c7943be5f2af9c61fd59c86c6d96840896fdc1da.zip
tcl-c7943be5f2af9c61fd59c86c6d96840896fdc1da.tar.gz
tcl-c7943be5f2af9c61fd59c86c6d96840896fdc1da.tar.bz2
Finish the TIP #416 implementation as specified (#define's were still missing). Added warning to "load" documentation. Added test case for using -global without specifying filename.
Diffstat (limited to 'tests/load.test')
-rw-r--r--tests/load.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/load.test b/tests/load.test
index 19303ce..eef677f 100644
--- a/tests/load.test
+++ b/tests/load.test
@@ -66,6 +66,9 @@ test load-1.6 {basic errors} {} {
test load-1.7 {basic errors} {} {
list [catch {load -abc foo} msg] $msg
} "1 {bad option \"-abc\": must be -global, -lazy, or --}"
+test load-1.8 {basic errors} {} {
+ list [catch {load -global} msg] $msg
+} "1 {couldn't figure out package name for -global}"
test load-2.1 {basic loading, with guess for package name} \
[list $dll $loaded] {