Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-07-31
22:51 • Closed ticket [1531530fff]: new clock.test failures plus 7 other changes artifact: 85a90d9c36 user: kennykb
21:06 • Ticket [1531530fff]: 5 changes artifact: bc2c1d2c52 user: dgp
05:40 • New ticket [1531530fff]. artifact: 29c96b922f user: dgp

new clock.test failures

Closed / Fixed1531530fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-07-31 05:40:21
==== clock-50.1 format / scan -1 as a local time FAILED
==== Contents of test case:

    if {[catch {
        clock scan  [clock format -1 -format
%Y%m%d%H%M%S -timezone :localtime]  -format
%Y%m%d%H%M%S -timezone :localtime
    } result]} {
        if { [regexp " too large" $result] } {
            set result -1
        }
    }
    set result

---- Result was:
-86401
---- Result should have been (exact matching):
-1
==== clock-50.1 FAILED


==== clock-50.2 format / scan -2 as a local time FAILED
==== Contents of test case:

    if {[catch {
        clock scan  [clock format -2 -format
%Y%m%d%H%M%S -timezone :localtime]  -format
%Y%m%d%H%M%S -timezone :localtime
    } result]} {
        if { [regexp " too large" $result] } {
            set result -2
        }
    }
    set result

---- Result was:
-86402
---- Result should have been (exact matching):
-2
==== clock-50.2 FAILED
dgpplain2006-07-31 21:06:38
Logged In: YES 
user_id=80530


same failures on Solaris and Linux
kennykbplain2006-07-31 22:51:27
Logged In: YES 
user_id=99768

Regression introduced by the fixes for 1426279, 1505383 and
1494664.  Only fails on certain compilers and runtime
engines (depends on whether integer division is
truncate-toward-minus-infinity or truncate-toward-zero, and
on some implementation details of the 'mktime' function).
Log in (anonymous is fine) to add a comment.