Tk Library Source Code

View Ticket
Login
Ticket UUID: 1061207
Title: Tcl 8.5a2 breaks test suite
Type: Bug Version: None
Submitter: dgp Created on: 2004-11-05 22:08:39
Subsystem: None Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-09-27 06:35:47
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2005-09-26 23:35:47
Description:
the syntax of the "wrong # args"
error message recently changed
in Tcl, and as a consequence,
`make test` for tcllib has
56 failing tests.
User Comments: andreas_kupries added on 2005-09-27 06:35:47:
Logged In: YES 
user_id=75003

The changes to the error messages have been integrated into
the Tcllib testsuite. Failurues due to changes in the way
Tcl 8.5 is processing numbers are currently not tracked,
i.e. ignored, until that area of 8.5 stabilizes again.

lvirden added on 2004-12-08 00:26:57:
Logged In: YES 
user_id=15949

More than the syntax change is wrong in the latest tcllib
cvs head though.  For instance:

modules/math/linalg.test

==== svd-1.0 singular value decomposition - 2x2 FAILED
==== Contents of test case:

    set M {{1 2} {2 1}}
    determineSVD $M

---- Result was:
{{0.70710678118654746 0.70710678118654768}
{0.70710678118654757 -0.70710678118654735}} {3.0 1.0} {{0
.70710678118654757 -0.70710678118654746}
{0.70710678118654746 0.70710678118654757}}
---- Result should have been (exact matching):
?
==== svd-1.0 FAILED

==== svd-1.0 singular value decomposition - 10x10 FAILED
==== Contents of test case:

    set M [mkDingdong 10]
    lindex [determineSVD $M] 1

---- Result was:
1.5707963267948406 1.57079632678333 1.5707963256965822
1.5707962637493669 1.5707938907852776 1.57072
96529311292 1.5694762403004545 1.5520538415681926
1.3934577412020643 0.65048453501485148
---- Result should have been (exact matching):
?
==== svd-1.0 FAILED

- comm 4.2.1
Main       @ 37467
Subshell is "/tmp/tcl/bin/tclsh8.4"
Waiting for sub server to boot
Sub server @ 37468      [server: Pop3 Fake Server]

==== pop3-0.0 bogus options FAILED
==== Contents of test case:

    catch {pop3::open -foo bar localhost ak smash 7664} msg
    set msg

---- Result was:
::pop3::open : Illegal option "-foo"
---- Result should have been (exact matching):
::pop3::open : Illegal option "foo"
==== pop3-0.0 FAILED

==== pop3-2.8 fast retrieval, .-stuff border break, #528928
FAILED
==== Contents of test case:

    dialog::dialog_set {retrMessage 0 $__messageA 114}
    set psock [pop3::open -retr-mode retr localhost ak smash
[dialog::listener]]
    set res   [pop3::retrieve $psock 1]
    pop3::close $psock
    dialog::waitdone
    set res

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: POP3 LOGIN ERROR: error writing "sock8":
broken pipe
    while executing
"error "POP3 LOGIN ERROR: $errorStr""
    (procedure "pop3::open" line 81)
    invoked from within
"pop3::open -retr-mode retr localhost ak smash
[dialog::listener]"
    invoked from within
"set psock [pop3::open -retr-mode retr localhost ak smash
[dialog::listener]]"
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== pop3-2.8 FAILED

==== pop3-2.9 fast retrieval, .-stuff border break FAILED
==== Contents of test case:

    dialog::dialog_set {retrMessage 0 $__messageB 126}
    set psock [pop3::open -retr-mode retr localhost ak smash
[dialog::listener]]
    set res   [pop3::retrieve $psock 1]
    pop3::close $psock
    dialog::waitdone
    set res

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: 
    while executing
"error [string range $popRet 4 end]"
    (procedure "::pop3::send" line 13)
    invoked from within
"::pop3::send $chan "RETR $index""
    ("retr" arm line 2)
    invoked from within
"switch -exact -- $cstate(retr_mode) {
            retr {
                set sizeStr [::pop3::send $chan "RETR $index"]

                ::log::log debug "pop3 $chan retrieve
($sizeStr)..."
    (procedure "pop3::retrieve" line 46)
    invoked from within
"pop3::retrieve $psock 1"
    invoked from within
"set res   [pop3::retrieve $psock 1]"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== pop3-2.9 FAILED

==== pop3-5.0 get and delete all message, nano-client FAILED
==== Contents of test case:

    set res ""
    dialog::dialog_set deleDialog
    set psock [pop3::open -retr-mode slow localhost ak smash
[dialog::listener]]
    set x [lindex [pop3::status $psock] 0]
    lappend res $x
    for {set i 0 } {$i < $x} {incr i} {
        set j [expr {$i + 1}]
        set msg [pop3::retrieve $psock $j]
        lappend res [string length $msg]
        pop3::delete $psock $j
    }
    pop3::close $psock

    set n 3
    foreach t [dialog::waitdone] {
        if {![string match "<<*" $t]} {continue}
        # Ignore commands from the login interaction.
        if {$n} {incr n -1 ; continue}
        lappend res [lindex $t 1]
    }
    set res
---- Result was:
11 67 67 67 67 67 67 67 67 67 67 67 {TOP 1 1} QUIT
---- Result should have been (exact matching):
11 67 67 67 67 67 67 67 67 67 67 67 STAT LAST {RETR 1} LAST
{DELE 1} LAST {RETR 2} LAST {DELE 2} LAS
T {RETR 3} LAST {DELE 3} LAST {RETR 4} LAST {DELE 4} LAST
{RETR 5} LAST {DELE 5} LAST {RETR 6} LAST 
{DELE 6} LAST {RETR 7} LAST {DELE 7} LAST {RETR 8} LAST
{DELE 8} LAST {RETR 9} LAST {DELE 9} LAST {R
ETR 10} LAST {DELE 10} LAST {RETR 11} LAST {DELE 11} QUIT
==== pop3-5.0 FAILED