Artifacts Associated With Ticket 1341368
Ticket change [f46b77c647] (rid 129911) by dgp on 2005-10-29 06:43:44:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
==== expr-46.13 round() boundary case - largest int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax - 0.51)} ---- Result was: -2147483650 ---- Result should have been (exact matching): 2147483646 ==== expr-46.13 FAILED ==== expr-46.14 round() boundary case - largest int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax - 0.50)} ---- Result was: -2147483650 ---- Result should have been (exact matching): 2147483647 ==== expr-46.14 FAILED ==== expr-46.15 round() boundary case - becomes wide int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax + 0.50)} ---- Result was: -2147483649 ---- Result should have been (exact matching): 2147483648 ==== expr-46.15 FAILED ==== expr-46.16 round() boundary case - smallest int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin + 0.51)} ---- Result was: 2147483649 ---- Result should have been (exact matching): -2147483647 ==== expr-46.16 FAILED ==== expr-46.17 round() boundary case - smallest int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin + 0.50)} ---- Result was: 2147483649 ---- Result should have been (exact matching): -2147483648 ==== expr-46.17 FAILED ==== expr-46.18 round() boundary case - becomes wide int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin - 0.50)} ---- Result was: 2147483648 ---- Result should have been (exact matching): -2147483649 ==== expr-46.18 FAILED Perhaps it's just missing test constraints; the tests appear suitable only for systems on which the C long type is 32-bit. Still the point of the tests elude me. Just more stuff that's changing in 8.5, right? If we haven't tested it before, why start now? - foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "expr-46.13-18 fail on 64-bit systems"
- type initialized to: "Bug"
Ticket change [5e910d440d] (rid 115658) by mdejong on 2005-10-30 03:00:03:
- icomment:
Logged In: YES user_id=90858 Fixed problem by adding 32bit vs 64 bit logic. As far as the 8.5 bit, it needs to behave like the expr impl in 8.4 for numbers that fit inside longs anyway.
- login: "mdejong"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "mdejong"
- icomment:
Ticket change [096e6ea370] (rid 113650) by mdejong on 2005-10-30 03:00:04:
- closedate changed to: "2005-10-29T20:00:04"
- closer changed to: "mdejong"
Ticket change [8b9d6b2971] (rid 127597) by dgp on 2005-11-01 00:10:52:
- icomment:
Logged In: YES user_id=80530 Now instead of failing, the tests throw the error "integer value too large to represent".
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [cca1d30854] (rid 95734) by dgp on 2005-11-09 03:22:23:
- assignee changed to: "dgp"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [11ee93ce16] (rid 95227) by dgp on 2005-11-09 03:22:24:
- icomment:
Logged In: YES user_id=80530 portable version of these tests committed to both branches.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4586de3e8d] (rid 99367) by dgp on 2005-11-09 03:22:25:
- closedate changed to: "2005-11-08T20:22:25"
- closer changed to: "dgp"