Import Tcl 8.6.11
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
# See the file "license.terms" for information on usage and redistribution
|
||||
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
|
||||
if {[lsearch [namespace children] ::tcltest] == -1} {
|
||||
package require tcltest
|
||||
if {"::tcltest" ni [namespace children]} {
|
||||
package require tcltest 2.5
|
||||
namespace import -force ::tcltest::*
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ if {[catch {package require http 1.0}]} {
|
||||
::tcltest::cleanupTests
|
||||
return
|
||||
} else {
|
||||
catch {puts "Running http 1.0 tests in slave interp"}
|
||||
catch {puts "Running http 1.0 tests in child interp"}
|
||||
set interp [interp create httpold]
|
||||
$interp eval [list set httpold "running"]
|
||||
$interp eval [list set argv $argv]
|
||||
@@ -33,23 +33,22 @@ if {[catch {package require http 1.0}]} {
|
||||
}
|
||||
}
|
||||
|
||||
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}
|
||||
|
||||
##
|
||||
## The httpd script implement a stub http server
|
||||
## Sourcing httpd overwrites the value of HOST.
|
||||
##
|
||||
source [file join [file dirname [info script]] httpd]
|
||||
|
||||
set port 8010
|
||||
if [catch {httpd_init $port} listen] {
|
||||
if {[catch {httpd_init $port} listen]} {
|
||||
puts "Cannot start http server, http test skipped"
|
||||
unset port
|
||||
::tcltest::cleanupTests
|
||||
|
||||
Reference in New Issue
Block a user