Tcl Source Code

View Ticket
Login
Ticket UUID: 2641672
Title: http1.0 failing test: httpold-4.12
Type: Bug Created on: 2009-02-26 13:18:35
Submitter: matzek Assigned to: sebres
Subsystem: 29. http Package Severity: Minor
Priority: 5 Medium Last modified: 2022-09-06 09:07:30
Status: Closed Closed by: sebres
Resolution: Fixed Closed on: 2022-09-06 09:07:30
Version: obsolete: 8.6b1.1
Description:
Hi *,

running "configure; make; make test" on Linux with the current HEAD gives

==== httpold-4.12 httpEvent FAILED
==== Contents of test case:

    update
    set x {}
    after 500 {lappend x ok}
    set token [http_get $url -timeout 1 -command {lappend x fail}]
    vwait x
    list [http_status $token] $x

---- Result was:
ok ok
---- Result should have been (exact matching):
timeout ok
==== httpold-4.12 FAILED

on all architectures (x86, x86_64, ia64, s390x).

It does, however, not fail on AIX, HP-UX, and Solaris!

kind regards
-- Matthias Kraft
User Comments:
dgp added on 2009-02-26 22:14:37:
the test is timing sensitive,
which makes it unreliable.

kjnash added on 2022-05-30 21:12:16:
This bug and the test file httpold.test relate to the http 1.0 package which is scheduled for removal in Tcl 8.7.

jan.nijtmans added on 2022-09-02 14:13:00:

httpold-4.12 is now marked "knownBug", so no need to worry about this any more


sebres added on 2022-09-02 17:06:17:

[6ac843c97f] fixes that ultimately (and accelerates several tests depended on httpd)


jan.nijtmans added on 2022-09-03 13:14:30:

Re-opening, because [6ac843c97f] causes build-failures in github actions:

Test file error: http.test bgerror
can't read "data(query)": no such variable
can't read "data(query)": no such variable
    while executing
"regexp {(?:^|[\?&])delay=([^&]+)} $data(query) {} val"
    (procedure "httpdRead" line 19)
    invoked from within
"httpdRead sock55eac8a464c0"
http.test bgerror
can't read "data(query)": no such variable
can't read "data(query)": no such variable
    while executing
"regexp {(?:^|[\?&])delay=([^&]+)} $data(query) {} val"
    (procedure "httpdRead" line 19)
    invoked from within
"httpdRead sock55eac8a1d610"


sebres added on 2022-09-05 10:31:42:

done in [e6634132e3]


jan.nijtmans added on 2022-09-05 11:01:12:

Thanks! Let's wait for github actions, just to be sure ..... ;-)


sebres added on 2022-09-06 09:07:30:
GHA succeed