summaryrefslogtreecommitdiffstats
path: root/tests/unixWm.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unixWm.test')
-rw-r--r--tests/unixWm.test22
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/unixWm.test b/tests/unixWm.test
index 64094fd..ddd641b 100644
--- a/tests/unixWm.test
+++ b/tests/unixWm.test
@@ -7,11 +7,17 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: unixWm.test,v 1.19 2002/06/22 10:13:26 hobbs Exp $
-
-if {[lsearch [namespace children] ::tcltest] == -1} {
- source [file join [pwd] [file dirname [info script]] defs.tcl]
-}
+# RCS: @(#) $Id: unixWm.test,v 1.20 2002/07/12 13:41:00 dgp Exp $
+
+package require tcltest 2.1
+namespace import -force tcltest::test
+namespace import -force tcltest::testsDirectory
+namespace import -force tcltest::configure
+namespace import -force tcltest::interpreter
+configure -testdir [file join [pwd] [file dirname [info script]]]
+configure -loadfile [file join [testsDirectory] constraints.tcl]
+tcltest::loadTestedCommands
+eval configure $argv
if {$tcl_platform(platform) != "unix"} {
puts "skipping: Unix only tests..."
@@ -2351,7 +2357,7 @@ test unixWm-59.1 {exit processing} {
exit
}
close $fd
- if {[catch {exec $::tcltest::tktest script -geometry 10x10+0+0} msg]} {
+ if {[catch {exec [interpreter] script -geometry 10x10+0+0} msg]} {
set error 1
} else {
set error 0
@@ -2370,7 +2376,7 @@ test unixWm-59.2 {exit processing} {
exit
}
close $fd
- if {[catch {exec $::tcltest::tktest script -geometry 10x10+0+0} msg]} {
+ if {[catch {exec [interpreter] script -geometry 10x10+0+0} msg]} {
set error 1
} else {
set error 0
@@ -2395,7 +2401,7 @@ test unixWm-59.3 {exit processing} {
exit
}
close $fd
- if {[catch {exec $::tcltest::tktest script -geometry 10x10+0+0} msg]} {
+ if {[catch {exec [interpreter] script -geometry 10x10+0+0} msg]} {
set error 1
} else {
set error 0