summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-16 15:04:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-16 15:04:10 (GMT)
commit4ea5470891ef203f5037e8c2e6dab835a0cffdd5 (patch)
tree0e7570e05376c0ff1d0fa8943a8b240043cb2734 /tests
parentd06a5c4c22214e8bcdab307afca8c8698c6831eb (diff)
parent7795886d4958ae36fecb7eeaf2514ce1dcf960dd (diff)
downloadtcl-4ea5470891ef203f5037e8c2e6dab835a0cffdd5.zip
tcl-4ea5470891ef203f5037e8c2e6dab835a0cffdd5.tar.gz
tcl-4ea5470891ef203f5037e8c2e6dab835a0cffdd5.tar.bz2
Merge 8.7
Diffstat (limited to 'tests')
-rw-r--r--tests/fCmd.test18
-rw-r--r--tests/http.test11
-rw-r--r--tests/httpd10
3 files changed, 20 insertions, 19 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index a13f0e1..004392f 100644
--- a/tests/fCmd.test
+++ b/tests/fCmd.test
@@ -24,6 +24,7 @@ testConstraint testsetplatform [llength [info commands testsetplatform]]
testConstraint testchmod [llength [info commands testchmod]]
testConstraint winVista 0
testConstraint winXP 0
+testConstraint win10 0
# Don't know how to determine this constraint correctly
testConstraint notNetworkFilesystem 0
testConstraint reg 0
@@ -67,9 +68,14 @@ if {[testConstraint unix]} {
# Also used in winFCmd...
if {[testConstraint win]} {
if {$::tcl_platform(osVersion) >= 5.0} {
- testConstraint winVista 1
- } else {
- testConstraint winXP 1
+ if {$::tcl_platform(osVersion) >= 10.0} {
+ testConstraint win10 1
+ }
+ if {$::tcl_platform(osVersion) >= 6.0} {
+ testConstraint winVista 1
+ } else {
+ testConstraint win2000orXP 1
+ }
}
}
@@ -2354,13 +2360,13 @@ test fCmd-28.7 {file link: source already exists} -setup {
} -returnCodes error -cleanup {
cd [workingDirectory]
} -result {could not create new link "abc.file": that path already exists}
-test fCmd-28.8 {file link} -constraints {linkFile win} -setup {
+test fCmd-28.8 {file link} -constraints {linkFile win10} -setup {
cd [temporaryDirectory]
} -body {
file link -symbolic abc.link abc.file
-} -returnCodes error -cleanup {
+} -cleanup {
cd [workingDirectory]
-} -result {could not create new link "abc.link" pointing to "abc.file": not a directory}
+} -result abc.file
test fCmd-28.9 {file link: success with file} -constraints {linkFile} -setup {
cd [temporaryDirectory]
file delete -force abc.link
diff --git a/tests/http.test b/tests/http.test
index 4a07789..ff9fb78 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -38,13 +38,10 @@ proc bgerror {args} {
puts stderr $errorInfo
}
-if {$::tcl_platform(os) eq "Darwin"} {
- # Name resolution often a problem on OSX; not focus of HTTP package anyway
- set HOST localhost
-} else {
- set HOST [info hostname]
-}
-
+# Do not use [info hostname].
+# Name resolution is often a problem on OSX; not focus of HTTP package anyway.
+# Also a problem on other platforms for http-4.14 (test with bad port number).
+set HOST localhost
set bindata "This is binary data\x0d\x0amore\x0dmore\x0amore\x00null"
catch {unset data}
diff --git a/tests/httpd b/tests/httpd
index 37343aa..43e9372 100644
--- a/tests/httpd
+++ b/tests/httpd
@@ -10,12 +10,10 @@
#set httpLog 1
-if {$::tcl_platform(os) eq "Darwin"} {
- # Name resolution often a problem on OSX; not focus of HTTP package anyway
- set HOST localhost
-} else {
- set HOST [info hostname]
-}
+# Do not use [info hostname].
+# Name resolution is often a problem on OSX; not focus of HTTP package anyway.
+# Also a problem on other platforms for http-4.14 (test with bad port number).
+set HOST localhost
proc httpd_init {{port 8015}} {
set s [socket -server httpdAccept $port]