diff options
author | jenn <jenn@noemail.net> | 1999-06-26 03:54:08 (GMT) |
---|---|---|
committer | jenn <jenn@noemail.net> | 1999-06-26 03:54:08 (GMT) |
commit | 368f4dccfb832cfeccd72c5379cef277e11b1cff (patch) | |
tree | 475011f75181f78a0a48f3360124d7e98188018e /tests/http.test | |
parent | 7975fde3c2e132a9ee1d6495ae2db10c74c56066 (diff) | |
download | tcl-368f4dccfb832cfeccd72c5379cef277e11b1cff.zip tcl-368f4dccfb832cfeccd72c5379cef277e11b1cff.tar.gz tcl-368f4dccfb832cfeccd72c5379cef277e11b1cff.tar.bz2 |
Modified the tests to use the package tcltest
FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
Diffstat (limited to 'tests/http.test')
-rw-r--r-- | tests/http.test | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/http.test b/tests/http.test index 41ffd0b..2015c8e 100644 --- a/tests/http.test +++ b/tests/http.test @@ -12,10 +12,11 @@ # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # -# RCS: @(#) $Id: http.test,v 1.8 1999/06/08 18:06:51 hershey Exp $ +# RCS: @(#) $Id: http.test,v 1.9 1999/06/26 03:54:14 jenn Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { - source [file join [pwd] [file dirname [info script]] defs.tcl] + package require tcltest + namespace import ::tcltest::* } if {[catch {package require http 2.0}]} { @@ -39,13 +40,13 @@ catch {unset data} # Ensure httpd file exists -set origFile [file join $::tcltest::testsDir httpd] -set newFile [file join $::tcltest::workingDir httpd] +set origFile [file join $::tcltest::testsDirectory httpd] +set newFile [file join $::tcltest::workingDirectory httpd] if {![file exists $newFile]} { file copy $origFile $newFile set removeHttpd 1 } -set httpdFile [file join $::tcltest::workingDir httpd] +set httpdFile [file join $::tcltest::workingDirectory httpd] if {[info commands testthread] == "testthread" && [file exists $httpdFile]} { set httpthread [testthread create " |