diff options
author | vincentdarley <vincentdarley> | 2003-02-07 11:59:43 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-02-07 11:59:43 (GMT) |
commit | e0cb0bc6b979e367d80f72a624325d14a50ab6eb (patch) | |
tree | e41d6766997ee6cdc7824d78ae602d9c77e1dd16 /tests | |
parent | 17cd8602bc9bd0401d641d50893a409bc660c181 (diff) | |
download | tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.zip tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.tar.gz tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.tar.bz2 |
fix to crashing filesystem test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fileSystem.test | 11 | ||||
-rw-r--r-- | tests/http.test | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test index f015270..9a4f1c2 100644 --- a/tests/fileSystem.test +++ b/tests/fileSystem.test @@ -132,7 +132,6 @@ file delete -force dir2.link file delete -force link.file dir.link removeFile [file join dir.file inside.file] removeDirectory dir.file -removeFile gorp.file test filesystem-2.0 {new native path} {unixOnly} { foreach f [lsort [glob -nocomplain /usr/bin/c*]] { @@ -406,12 +405,12 @@ test filesystem-7.1 {load from vfs} {win} { test filesystem-7.2 {cross-filesystem copy from vfs maintains mtime} { set dir [pwd] - cd [file dirname [info script]] - set origtime [file mtime [info script]] - set dir [pwd] + cd [tcltest::temporaryDirectory] + # We created this file several tests ago. + set origtime [file mtime gorp.file] testsimplefilesystem 1 file delete -force theCopy - file copy simplefs:/[file tail [info script]] theCopy + file copy simplefs:/gorp.file theCopy testsimplefilesystem 0 set newtime [file mtime theCopy] file delete theCopy @@ -419,6 +418,8 @@ test filesystem-7.2 {cross-filesystem copy from vfs maintains mtime} { expr {$origtime == $newtime} } {1} +removeFile gorp.file + cleanupTests } namespace delete ::tcl::test::fileSystem diff --git a/tests/http.test b/tests/http.test index 9d33802..b5fb26c 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.31 2002/10/03 13:34:32 dkf Exp $ +# RCS: @(#) $Id: http.test,v 1.32 2003/02/07 11:59:43 vincentdarley Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -444,6 +444,8 @@ test http-4.14 {http::Event} { # Bogus host test http-4.15 {http::Event} { + # This test may fail if you use a proxy server. That is to be + # expected and is not a problem with Tcl. set code [catch { set token [http::geturl not_a_host.scriptics.com -timeout 1000 -command {#}] http::wait $token |