diff options
author | vincentdarley <vincentdarley> | 2002-07-08 08:50:22 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2002-07-08 08:50:22 (GMT) |
commit | 11a54cb010fa27ab006f13181b40da00a4f87550 (patch) | |
tree | 345901ae34c72b694370e1d172dad0540181cce3 /tests/fileName.test | |
parent | 68b9c133991e6b15f963215b186d3b21c52ec9ce (diff) | |
download | tcl-11a54cb010fa27ab006f13181b40da00a4f87550.zip tcl-11a54cb010fa27ab006f13181b40da00a4f87550.tar.gz tcl-11a54cb010fa27ab006f13181b40da00a4f87550.tar.bz2 |
add file link constraint
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index 9089f93..13620a6 100644 --- a/tests/fileName.test +++ b/tests/fileName.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: fileName.test,v 1.24 2002/07/05 10:38:42 dkf Exp $ +# RCS: @(#) $Id: fileName.test,v 1.25 2002/07/08 08:50:23 vincentdarley Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -1175,7 +1175,17 @@ test filename-11.17.1 {Tcl_GlobCmd} {pcOnly macOnly} { [file join $globname x,z1.c]\ [file join $globname x1.c]\ [file join $globname y1.c] [file join $globname z1.c]]]] -test filename-11.17.2 {Tcl_GlobCmd} {notRoot} { +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 filename-11.17.2 {Tcl_GlobCmd} {notRoot linkDirectory} { set dir [pwd] set ret "error in test" if {[catch { @@ -1193,7 +1203,7 @@ test filename-11.17.2 {Tcl_GlobCmd} {notRoot} { } [list 0 [lsort [list [file join $globname a1 b1] \ [file join $globname link b1]]]] # Simpler version of the above test to illustrate a given bug. -test filename-11.17.3 {Tcl_GlobCmd} {notRoot} { +test filename-11.17.3 {Tcl_GlobCmd} {notRoot linkDirectory} { set dir [pwd] set ret "error in test" if {[catch { @@ -1214,7 +1224,7 @@ test filename-11.17.3 {Tcl_GlobCmd} {notRoot} { [file join $globname link]]]] # Make sure the bugfix isn't too simple. We don't want # to break 'glob -type l'. -test filename-11.17.4 {Tcl_GlobCmd} {notRoot} { +test filename-11.17.4 {Tcl_GlobCmd} {notRoot linkDirectory} { set dir [pwd] set ret "error in test" if {[catch { |