diff options
author | dgp <dgp@noemail.net> | 2008-10-07 18:27:01 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-10-07 18:27:01 (GMT) |
commit | a1079e71dd1d90c756513804759d7b8d020caaf4 (patch) | |
tree | 40f6d18ed758a59778994dd7dfc23052a813fa36 /tests/winDialog.test | |
parent | ac63cdba05cb510b934f0eed1b3dc6c2c50b7d26 (diff) | |
download | tk-a1079e71dd1d90c756513804759d7b8d020caaf4.zip tk-a1079e71dd1d90c756513804759d7b8d020caaf4.tar.gz tk-a1079e71dd1d90c756513804759d7b8d020caaf4.tar.bz2 |
Simpleminded protection against fatal error when env(TEMP) is not defined.
FossilOrigin-Name: 1528b4cadc82cfa9b1ed682a2d212fa67e7cd356
Diffstat (limited to 'tests/winDialog.test')
-rw-r--r-- | tests/winDialog.test | 4 |
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 { |