summaryrefslogtreecommitdiffstats
path: root/tests/choosedir.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-12-08 03:02:52 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-12-08 03:02:52 (GMT)
commit21df9ae7a1997e227dd3deb9a4855ab9b40bac7f (patch)
tree0d85c25f22d5dc509dc72c795506d36d9ae793f9 /tests/choosedir.test
parent4180597529a6eee5a39a5cd58cc6275e2dd232f3 (diff)
downloadtk-21df9ae7a1997e227dd3deb9a4855ab9b40bac7f.zip
tk-21df9ae7a1997e227dd3deb9a4855ab9b40bac7f.tar.gz
tk-21df9ae7a1997e227dd3deb9a4855ab9b40bac7f.tar.bz2
* tests/canvPs.test: Cleaned up the matching of [makeFile] and
* tests/choosedir.test: [removeFile] commands as indicated by the * tests/filebox.test: results of a -debug 1 run of the test suite. * tests/imgPPM.test: Tk test suite is now -debug 1 clean. This * tests/imgPhoto.test: completes fixing [1078648]. * tests/listbox.test: * tests/main.test:
Diffstat (limited to 'tests/choosedir.test')
-rw-r--r--tests/choosedir.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/choosedir.test b/tests/choosedir.test
index 540c686..d63d091 100644
--- a/tests/choosedir.test
+++ b/tests/choosedir.test
@@ -5,7 +5,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: choosedir.test,v 1.13 2004/06/24 12:45:42 dkf Exp $
+# RCS: @(#) $Id: choosedir.test,v 1.14 2004/12/08 03:02:53 dgp Exp $
#
package require tcltest 2.1
@@ -81,10 +81,9 @@ proc SendButtonPress {parent btn type} {
#
#----------------------------------------------------------------------
# Make a dir for us to rely on for tests
-makeDirectory choosedirTest
-set dir [pwd]
+set real [makeDirectory choosedirTest]
+set dir [file dirname $real]
set fake [file join $dir non-existant]
-set real [file join $dir choosedirTest]
set parent .
@@ -145,5 +144,6 @@ test choosedir-5.1 "tk_chooseDirectory, handles {} entry text" unix {
} $real
# cleanup
+removeDirectory choosedirTest
cleanupTests
return