summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-11-22 14:16:51 (GMT)
committersebres <sebres@users.sourceforge.net>2018-11-22 14:16:51 (GMT)
commit1cf15d2b4dfa14df45471804f579f5e4e1cbfae2 (patch)
tree6db90761464a8bb5655c9caff61fcc3579057886 /tests
parenta27b61390990c4773c93bf87f132987b980a1582 (diff)
parentfb0f0b6c373000a8893904c0eea7580fdc902d20 (diff)
downloadtcl-1cf15d2b4dfa14df45471804f579f5e4e1cbfae2.zip
tcl-1cf15d2b4dfa14df45471804f579f5e4e1cbfae2.tar.gz
tcl-1cf15d2b4dfa14df45471804f579f5e4e1cbfae2.tar.bz2
merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdAH.test7
-rw-r--r--tests/winFile.test7
-rw-r--r--tests/winPipe.test8
3 files changed, 18 insertions, 4 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index e8933d6..88c0367 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -566,6 +566,13 @@ test cmdAH-9.51 {Tcl_FileObjCmd: tail} testsetplatform {
testsetplatform windows
file tail {foo\bar}
} bar
+test cmdAH-9.52 {Tcl_FileObjCmd: tail / normalize, bug 7a9dc52b29} {
+ list \
+ [file tail {~/~foo}] \
+ [file tail {~/test/~foo}] \
+ [file tail [file normalize {~/~foo}]] \
+ [file tail [file normalize {~/test/~foo}]]
+} [lrepeat 4 ./~foo]
# rootname
test cmdAH-10.1 {Tcl_FileObjCmd: rootname} -returnCodes error -body {
diff --git a/tests/winFile.test b/tests/winFile.test
index b2cdfa1..b288063 100644
--- a/tests/winFile.test
+++ b/tests/winFile.test
@@ -39,13 +39,14 @@ test winFile-1.4 {TclpGetUserHome} {win nonPortable} {
test winFile-2.1 {TclpMatchFiles: case sensitivity} -constraints {win} -body {
makeFile {} GlobCapS
- list [glob -nocomplain GlobC*] [glob -nocomplain globc*]
-} -cleanup {
+ set args [list -nocomplain -tails -directory [temporaryDirectory]]
+ list [glob {*}$args GlobC*] [glob {*}$args globc*]} -cleanup {
removeFile GlobCapS
} -result {GlobCapS GlobCapS}
test winFile-2.2 {TclpMatchFiles: case sensitivity} -constraints {win} -body {
makeFile {} globlower
- list [glob -nocomplain globl*] [glob -nocomplain gLOBl*]
+ set args [list -nocomplain -tails -directory [temporaryDirectory]]
+ list [glob {*}$args globl*] [glob {*}$args gLOBl*]
} -cleanup {
removeFile globlower
} -result {globlower globlower}
diff --git a/tests/winPipe.test b/tests/winPipe.test
index 361858a..7e01c5f 100644
--- a/tests/winPipe.test
+++ b/tests/winPipe.test
@@ -22,9 +22,13 @@ catch {
set ::tcltestlib [lindex [package ifneeded Tcltest [info patchlevel]] 1]
}
-set bindir [file join [pwd] [file dirname [info nameofexecutable]]]
+set org_pwd [pwd]
+set bindir [file join $org_pwd [file dirname [info nameofexecutable]]]
set cat32 [file join $bindir cat32.exe]
+# several test-cases here expect current directory == [temporaryDirectory]:
+cd [temporaryDirectory]
+
testConstraint exec [llength [info commands exec]]
testConstraint cat32 [file exists $cat32]
testConstraint AllocConsole [catch {puts console1 ""}]
@@ -608,6 +612,8 @@ if {[info exists path(echoArgs.tcl)]} { removeFile echoArgs.tcl }
if {[info exists path(echoArgs.bat)]} { removeFile echoArgs.bat }
if {[info exists path(echoArgs2.bat)]} { removeDirectory test(Dir)Check }
::tcltest::cleanupTests
+# back to original directory:
+cd $org_pwd; unset org_pwd
return
# Local Variables: