|
2002-07-25
| ||
| 03:11 | • Closed ticket [578160ffff]: http-3.11 fails intermittently on Win32 plus 7 o... artifact: d6b4efbd77 user: hobbs | |
|
2002-07-06
| ||
| 17:54 | • New ticket [578160ffff]. artifact: 1fb4b69734 user: kennykb | |
http-3.11 fails intermittently on Win32
Closed / Works For Me578160ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-06 17:54:28
The 'http-3.11' test suffers from intermittent failures
under Windows NT, 2k and XP. The apparent reason
is that the subprocess has not yet released the lock
on 'outfile' at the time that the main process calls
'removeFile.'
==== http-3.11 http::geturl querychannel with -command FAILED
==== Contents of test case:
set query foo=bar
set sep ""
set i 0
# Create about 120K of query data
while {$i < 14} {
incr i
append query $sep$query
set sep &
}
set file [makeFile $query outdata]
set fp [open $file]
proc asyncCB {token} {
global postResult
lappend postResult [http::data $token]
}
set postResult [list ]
set t [http::geturl $posturl -querychannel $fp]
http::wait $t
set testRes [list [http::status $t] [string length $query] [http::data $t]]
# Now do async
http::cleanup $t
close $fp
set fp [open $file]
set t [http::geturl $posturl -querychannel $fp -command asyncCB]
set postResult [list PostStart]
http::wait $t
lappend testRes [http::status $t] $postResult
removeFile outdata
set testRes
---- Result was:
error deleting "D:/SourceForge/tcl/win/outdata": permission denied
---- Result should have been (exact matching):
ok 122879 {Got 122880 bytes} ok {PostStart {Got 122880 bytes}}
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
==== http-3.11 FAILED
hobbsplain2002-07-25 03:11:07
Logged In: YES user_id=72656 I cannot repeat this myself - perhaps it needs a tests run in a slow network environment? In any case, if someone wants to add an after that's fine, but otherwise I can't reproduce.
Log in (anonymous is fine) to add a comment.