summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2002-07-08 08:50:22 (GMT)
committervincentdarley <vincentdarley>2002-07-08 08:50:22 (GMT)
commit11a54cb010fa27ab006f13181b40da00a4f87550 (patch)
tree345901ae34c72b694370e1d172dad0540181cce3 /tests/cmdAH.test
parent68b9c133991e6b15f963215b186d3b21c52ec9ce (diff)
downloadtcl-11a54cb010fa27ab006f13181b40da00a4f87550.zip
tcl-11a54cb010fa27ab006f13181b40da00a4f87550.tar.gz
tcl-11a54cb010fa27ab006f13181b40da00a4f87550.tar.bz2
add file link constraint
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index a8c20ae..b77faea 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdAH.test,v 1.26 2002/07/04 21:47:59 dkf Exp $
+# RCS: @(#) $Id: cmdAH.test,v 1.27 2002/07/08 08:50:23 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -1536,7 +1536,17 @@ test cmdAH-29.4 {Tcl_FileObjCmd: type} {unixOnly nonPortable} {
file delete $linkfile
set result
} link
-test cmdAH-29.4.1 {Tcl_FileObjCmd: type} {
+if {[string equal $tcl_platform(platform) "windows"]} {
+ if {[string index $tcl_platform(osVersion) 0] >= 5 \
+ && ([lindex [file system [temporaryDirectory]] 1] == "NTFS")} {
+ tcltest::testConstraint linkDirectory 1
+ } else {
+ tcltest::testConstraint linkDirectory 0
+ }
+} else {
+ tcltest::testConstraint linkDirectory 1
+}
+test cmdAH-29.4.1 {Tcl_FileObjCmd: type} {linkDirectory} {
set tempdir [makeDirectory temp]
set linkdir [file join [temporaryDirectory] link.dir]
file link -symbolic $linkdir $tempdir