summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-01-05 20:41:27 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-01-05 20:41:27 (GMT)
commit496cff3ee18aff1069c341d282371190cff6563f (patch)
treec67d771e8834d9aca6a8fc4345f9d053b5073cc7 /tests/http.test
parent0f93742804d047a8de0fe3acda7b019daae7b273 (diff)
parent124e36102e8b08023fe370defa49f89705d61a13 (diff)
downloadtcl-496cff3ee18aff1069c341d282371190cff6563f.zip
tcl-496cff3ee18aff1069c341d282371190cff6563f.tar.gz
tcl-496cff3ee18aff1069c341d282371190cff6563f.tar.bz2
merge core-8-branch
Diffstat (limited to 'tests/http.test')
-rw-r--r--tests/http.test11
1 files changed, 4 insertions, 7 deletions
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}