summaryrefslogtreecommitdiffstats
path: root/tests/unixWm.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-07-12 13:40:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-07-12 13:40:58 (GMT)
commit92b5df1f4c8a5885e387c9f91b89b4ac70d00abd (patch)
treed8e183b36df3072890d7f699cb3530b8aa5e7777 /tests/unixWm.test
parent6501cfee251537a0baebe03094d48ade46cdb49d (diff)
downloadtk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.zip
tk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.tar.gz
tk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.tar.bz2
* Converted several files in the Tk test suite for testing by
tcltest 2.1.
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