summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-10-07 18:27:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-10-07 18:27:01 (GMT)
commitec5e9ba3561331b4e021bbec07fa0580cc6ef9ad (patch)
tree40f6d18ed758a59778994dd7dfc23052a813fa36 /tests
parent01f60c1822d79d1e3fabe3a6927e171133dea465 (diff)
downloadtk-ec5e9ba3561331b4e021bbec07fa0580cc6ef9ad.zip
tk-ec5e9ba3561331b4e021bbec07fa0580cc6ef9ad.tar.gz
tk-ec5e9ba3561331b4e021bbec07fa0580cc6ef9ad.tar.bz2
Simpleminded protection against fatal error when env(TEMP) is not defined.
Diffstat (limited to 'tests')
-rw-r--r--tests/winDialog.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/winDialog.test b/tests/winDialog.test
index c9e06a3..d3cb2a0 100644
--- a/tests/winDialog.test
+++ b/tests/winDialog.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# Copyright (c) 1998-1999 ActiveState Corporation.
#
-# RCS: @(#) $Id: winDialog.test,v 1.19 2008/10/06 22:09:16 patthoyts Exp $
+# RCS: @(#) $Id: winDialog.test,v 1.20 2008/10/07 18:27:01 dgp Exp $
package require tcltest 2.2
namespace import ::tcltest::*
@@ -255,6 +255,7 @@ test winDialog-5.10 {GetFileName: file types: MakeFilter() fails} -constraints {
tk_getSaveFile -filetypes {{"foo" .foo FOO}}
} -returnCodes error -result {bad Macintosh file type "FOO"}
+if {[info exists ::env(TEMP)]} {
test winDialog-5.11 {GetFileName: initial directory} -constraints {
nt testwinevent
} -body {
@@ -268,6 +269,7 @@ test winDialog-5.11 {GetFileName: initial directory} -constraints {
}
return $x
} -result [file join [file normalize $::env(TEMP)] "12x 455"]
+}
test winDialog-5.12 {GetFileName: initial directory: Tcl_TranslateFilename()} -constraints {
nt
} -body {