Tk Library Source Code

View Ticket
Login
Ticket UUID: 720208
Title: test failure: ntp module with tcl 8.3
Type: Bug Version: None
Submitter: patthoyts Created on: 2003-04-12 13:42:05
Subsystem: ntp Assigned To: patthoyts
Priority: 7 High Severity:
Status: Closed Last Modified: 2003-04-25 02:55:25
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2003-04-24 19:55:25
Description:
Test platform: tcl 8.3.5 Windows 2K intel.

The following failures produced when using tcl 8.3.5 to
run the tcllib test suite. These do not occur with tcl 8.4

It seems these tests rely on features only present in
tcltest 2.2+ (the ::tcltest::interpreter proc)

Module:ntp
modules/ntp/time.test

==== time-1.1 time::gettime FAILED
==== Contents of test case:

    global token
    list [catch {
        set f [createServerProcess]
        gets $f port
        set token [::time::gettime -protocol tcp
localhost $port]
        set r {}
    } msg] $msg    

---- Result was:
1 {invalid command name "::tcltest::interpreter"}
---- Result should have been:
0 {}
==== time-1.1 FAILED


==== time-1.2 time::status FAILED
==== Contents of test case:

    global token
    list [catch {time::status $token} m] $m

---- Result was:
1 {can't read "State(status)": no such variable}
---- Result should have been:
0 ok
==== time-1.2 FAILED


==== time-1.2 time::unixtime FAILED
==== Contents of test case:

    global token
    list [catch {
        set t [time::unixtime $token]
        string is integer -strict $t
    } m] $m

---- Result was:
1 {can't read "State(status)": no such variable}
---- Result should have been:
0 1
==== time-1.2 FAILED
User Comments: andreas_kupries added on 2003-04-25 02:55:25:
Logged In: YES 
user_id=75003

Fixed this as part of the changes for [723426].