summaryrefslogtreecommitdiffstats
path: root/tests/registry.test
diff options
context:
space:
mode:
authorstanton <stanton>1998-11-02 23:04:13 (GMT)
committerstanton <stanton>1998-11-02 23:04:13 (GMT)
commit099b6e9e41a346098526d7088680732358fa2e72 (patch)
treef83adf3b279fbc76856cab9fd4e55a88127e5a8c /tests/registry.test
parentf8c896766a7b11645db9f8c553ccb6fff4529996 (diff)
downloadtcl-099b6e9e41a346098526d7088680732358fa2e72.zip
tcl-099b6e9e41a346098526d7088680732358fa2e72.tar.gz
tcl-099b6e9e41a346098526d7088680732358fa2e72.tar.bz2
cleaned up test suite so most of the tests pass on Windows
Diffstat (limited to 'tests/registry.test')
-rw-r--r--tests/registry.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/registry.test b/tests/registry.test
index e02a538..ab692aa 100644
--- a/tests/registry.test
+++ b/tests/registry.test
@@ -9,7 +9,7 @@
#
# Copyright (c) 1997 by Sun Microsystems, Inc. All rights reserved.
#
-# RCS: @(#) $Id: registry.test,v 1.2 1998/09/14 18:40:13 stanton Exp $
+# RCS: @(#) $Id: registry.test,v 1.3 1998/11/02 23:04:14 stanton Exp $
if {$tcl_platform(platform) != "windows"} {
return
@@ -17,7 +17,10 @@ if {$tcl_platform(platform) != "windows"} {
if {[string compare test [info procs test]] == 1} then {source defs}
-if [catch {package require registry}] {
+set lib [lindex [glob [file join [pwd] [file dirname \
+ [info nameofexecutable]] tclreg*.dll]] 0]
+
+if [catch {load $lib registry}] {
puts "Unable to find the registry package. Skipping registry tests."
return
}