Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-26
05:06 • Ticket [748961ffff] http.test failed status still Closed with 3 other change... artifact: 9400ff23e8 user: hobbs
05:06 • Closed ticket [748961ffff]. artifact: 709cc73ddc user: hobbs
2004-05-19
16:16 • Ticket [748961ffff]: 4 changes artifact: e892b70912 user: mmokrejs
2003-12-03
21:11 • Ticket [748961ffff]: 4 changes artifact: 8bad6e2274 user: mmokrejs
2003-06-05
19:15 • Ticket [748961ffff]: 4 changes artifact: 4f60c00634 user: mmokrejs
2003-06-04
23:12 • Ticket [748961ffff]: 6 changes artifact: 5aac5d4edc user: dgp
16:06 • New ticket [748961ffff]. artifact: 198cd6be13 user: mmokrejs

http.test failed

Closed / Works For Me748961ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-06-04 16:06:28
Hi,
I have compiled tcl8.4.3 on Tru64Unix (formerly OSF1)
and make test fails in many cases. Would someone
inspect the output? Thanks!

I used cc/cxx from vendor, latest version, C*FLAGS"-O2
-arch ev56" if that matters.


The original bugreport is at
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=748804&group_id=10894


NOTE, THAT THIS TEST FAILED ONLY WHEN TEST WAS
PERFORMED ON AFS FILESYSTEM. WHEN TESTED ON NFS
FILESYSTEM IT PASSED(IR IT'S NOT REPRODUCIBLE?).


==== 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
    close $fp

    lappend testRes [http::status $t] $postResult
    removeFile outdata
    set testRes

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
==== http-3.11 FAILED
dgpplain2003-06-04 23:12:58
Logged In: YES 
user_id=80530


possibly related to 578160
mmokrejsplain2003-06-05 19:15:36
Logged In: YES 
user_id=696559

I just played a little bit. I can mekte the test running,
but have to copy the httpd to current working directory.
Maybe the testing scipt has wrong CWD?

$ make runtest
LD_LIBRARY_PATH=`pwd`:/software/@sys/usr/lib:/usr/local/lib:/usr/local/openssl/lib:/usr/lib:/usr/share/lib:/usr/shlib:;
export LD_LIBRARY_PATH; \
TCL_LIBRARY="/mnt/tcl8.4.3/library"; export TCL_LIBRARY; \
./tcltest
% source ../tests/http.test
error copying "/mnt/tcl8.4.3/unix/httpd": no such file or
directory
% pwd
/mnt/tcl8.4.3/unix
% cp ../tests/httpd .
% source ../tests/http.test
http.test:      Total   39      Passed  38      Skipped 1  
    Failed  0
Number of tests skipped for each constraint:
        1       nonPortable
Warning: files left behind:
        http.test:      httpd
%

Tested with 8.4.3.
mmokrejsplain2003-12-03 21:11:26
Logged In: YES 
user_id=696559

Still happens on same host with tcl8.4.5 when run manually.
This test passes when sources are on local filesystem and
ran by "make test". BUt, regardless the fact I use local
filesystem to house the sources, when my current working
directory is "/usr/local/scratch/tcl8.4.5/unix" and I ran
"./tcltest ../tests/http.test", it looks for httpd in
current dir, which is wrong. It is in ../tests/httpd.
Maybe I'm supposed to do:

cd ../tests
../unix/tclsh ./http.test  (but that fails too).

Simply, this test cannot be run manually.

$ ./tcltest ../tests/http.test -verbose e
error copying "/usr/local/scratch/tcl8.4.5/unix/httpd": no
such file or directory
    while executing
"file copy $origFile $httpdFile"
    invoked from within
"if {![file exists $httpdFile]} {
    makeFile "" $httpdFile
    file delete $httpdFile
    file copy $origFile $httpdFile
    set removeHttpd 1
}"
    (file "../tests/http.test" line 52)

$
mmokrejsplain2004-05-19 16:16:24
Logged In: YES 
user_id=696559

OK, seems to be "fixed" not to give false warnings in
current cvs:

$ LD_LIBRARY_PATH=../unix:$LD_LIBRARY_PATH ../unix/tclsh
./http.test
http.test:      Total   40      Passed  39      Skipped 1  
    Failed  0
Number of tests skipped for each constraint:
        1       nonPortable
$
hobbs Closed ticket [748961ffff]. [History diff]2004-05-26 05:06:41
hobbs Ticket [748961ffff]: 3 changes [History diff]2004-05-26 05:06:42
Log in (anonymous is fine) to add a comment.