summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-06-24 13:51:36 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-06-24 13:51:36 (GMT)
commit4fd9789c692f218dc5b7b34eb3b4029674ffaa03 (patch)
treeaa3285fb624f64e2badfbeee33ab06c4b9c8c5f2 /tests/http.test
parentc850bb8798a952623336cca73d9196af1454db02 (diff)
downloadtcl-4fd9789c692f218dc5b7b34eb3b4029674ffaa03.zip
tcl-4fd9789c692f218dc5b7b34eb3b4029674ffaa03.tar.gz
tcl-4fd9789c692f218dc5b7b34eb3b4029674ffaa03.tar.bz2
Correct failures during -singleproc 1 test suite run.
Correct duplicate test names.
Diffstat (limited to 'tests/http.test')
-rw-r--r--tests/http.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/http.test b/tests/http.test
index 7fac104..526dffa 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -12,7 +12,7 @@
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#
-# RCS: @(#) $Id: http.test,v 1.51 2009/04/10 14:19:45 patthoyts Exp $
+# RCS: @(#) $Id: http.test,v 1.52 2009/06/24 13:51:36 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -331,11 +331,15 @@ test http-3.23 {http::geturl parse failures} -body {
test http-3.24 {http::geturl parse failures} -body {
http::geturl http://somewhere/path?%query
} -returnCodes error -result {Illegal encoding character usage "%qu" in URL path}
-test http-3.25 {http::meta} {
+test http-3.25 {http::meta} -setup {
+ unset -nocomplain m token
+} -body {
set token [http::geturl $url -timeout 2000]
array set m [http::meta $token]
lsort [array names m]
-} {Content-Length Content-Type Date}
+} -cleanup {
+ unset -nocomplain m token
+} -result {Content-Length Content-Type Date}
test http-3.26 {http::meta} {
set token [http::geturl $url -headers {X-Check 1} -timeout 2000]
array set m [http::meta $token]
@@ -545,4 +549,4 @@ rename bgerror {}
# Local variables:
# mode: tcl
-# End: \ No newline at end of file
+# End: