View Ticket
Not logged in
Ticket UUID: bbaf69c3dd4a2f645fab2a1affa9753158b79063
Title: http-4.15* test failures
Type: Bug Version: trunk
Submitter: dgp Created on: 2023-09-15 17:29:14
Subsystem: 29. http Package Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2023-12-13 11:20:16
Resolution: Fixed Closed By: oehhar
    Closed on: 2023-12-13 11:20:16
Description:
New test failures on the trunk...

http.test
Running httpd in thread tid0x7f37456fb700
Running httpd in thread tid0x7f3744efa700
==== Test with ThreadLevel 0 ====
Running httpd in thread tid0x7f3744efa700
==== Test with ThreadLevel 1 ====


==== http-4.15.1 http::Event FAILED
==== Contents of test case:

    # This test may fail if you use a proxy server. That is to be
    # expected and is not a problem with Tcl.
    # With http::config -threadlevel 1 or 2, the script enters the event loop
    # during the DNS lookup, and has the opportunity to time out.
    # Increase -timeout from 3000 to 10000 to prevent this.
    set token [http::geturl //not_a_host.tcl.tk -timeout 10000 -command \#]
    http::wait $token
    set result "[http::status $token] -- [lindex [http::error $token] 0]"
    # error codes vary among platforms.

---- Result was:
timeout -- 
---- Result should have been (glob matching):
error -- couldn't open socket*
==== http-4.15.1 FAILED

Running httpd in thread tid0x7f3744efa700
==== Test with ThreadLevel 2 ====


==== http-4.15.2 http::Event FAILED
==== Contents of test case:

    # This test may fail if you use a proxy server. That is to be
    # expected and is not a problem with Tcl.
    # With http::config -threadlevel 1 or 2, the script enters the event loop
    # during the DNS lookup, and has the opportunity to time out.
    # Increase -timeout from 3000 to 10000 to prevent this.
    set token [http::geturl //not_a_host.tcl.tk -timeout 10000 -command \#]
    http::wait $token
    set result "[http::status $token] -- [lindex [http::error $token] 0]"
    # error codes vary among platforms.

---- Result was:
timeout -- 
---- Result should have been (glob matching):
error -- couldn't open socket*
==== http-4.15.2 FAILED


The comments suggest these test failures might be a false alarm, but
if that's the case we should construct a better way to deal with that.
We really want a `make test` to be a useful tool for everyone, and we
really want zero failing tests to be the expected result.

On the other hand, if the new failures indicate a real problem, we 
should fix it.
User Comments: oehhar added on 2023-12-13 11:20:16:

Fixed by Keith, thanks !

Here is the commit to core-8-branch: [7759882996].

Thank you all, Harald