#3476 new clock.test failures

obsolete: 8.5a5
closed-fixed
Kevin B KENNY
5
2006-07-31
2006-07-31
Don Porter
No

==== 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

Discussion

  • Don Porter
    Don Porter
    2006-07-31

    • summary: new test failures on Mac OS X --> new clock.test failures
     
  • Don Porter
    Don Porter
    2006-07-31

    Logged In: YES
    user_id=80530

    same failures on Solaris and Linux

     
  • Kevin B KENNY
    Kevin B KENNY
    2006-07-31

    • status: open --> closed-fixed
     
  • Kevin B KENNY
    Kevin B KENNY
    2006-07-31

    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).