summaryrefslogtreecommitdiffstats
path: root/tests/unixWm.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2002-07-12 13:40:58 (GMT)
committerdgp@users.sourceforge.net <dgp>2002-07-12 13:40:58 (GMT)
commitd6221cd8a9e69a5623cba5aab41cbba867c614aa (patch)
treed8e183b36df3072890d7f699cb3530b8aa5e7777 /tests/unixWm.test
parent026bda5e161b3e9a935354888b8189f700c1b8a3 (diff)
downloadtk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.zip
tk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.tar.gz
tk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.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