|
2013-08-14
| ||
| 14:15 | • Closed ticket [0aa8f12dcc]: mathop tests broken on novem plus 6 other change... artifact: 30811cacaa user: jan.nijtmans | |
|
2013-08-13
| ||
| 19:28 | • Ticket [0aa8f12dcc]: 3 changes artifact: f3deeb5b62 user: dgp | |
| 19:26 | [0aa8f12dcc] Restore minimum code to stop failing tests. check-in: a64f1e873a user: dgp tags: novem | |
| 18:44 | • Ticket [0aa8f12dcc] mathop tests broken on novem status still Open with 4 ot... artifact: 1795c8b026 user: dgp | |
| 18:44 | • New ticket [0aa8f12dcc]. artifact: a103551af3 user: dgp | |
mathop tests broken on novem
Closed / Fixed0aa8f12dccff837131987e789d7283909e4b8bf2Created 13 years agoUpdated 13 years ago
Descriptionplain2013-08-13 18:44:04
Sorry I did not catch this sooner; have not been
testing the novem branch regularly.
Starting with checkin http://core.tcl.tk/tcl/info/19ff9b95e1
two tests are failing on x86_64 linux:
==== mathop-21.3 unary ops, negation FAILED
==== Contents of test case:
set res {}
lappend res [TestOp - 7.2]
lappend res [TestOp - -5]
lappend res [TestOp - -2147483648] ;# -2**31
lappend res [TestOp - -9223372036854775808] ;# -2**63
lappend res [TestOp - 354657483923456] ;# wide
lappend res [TestOp - 123456789123456789123456789] ;# big
set res
---- Result was:
-7.2 5 2147483648 {2:(-9223372036854775808 != 9223372036854775808)} -354657483923456 -123456789123456789123456789
---- Result should have been (exact matching):
-7.2 5 2147483648 9223372036854775808 -354657483923456 -123456789123456789123456789
==== mathop-21.3 FAILED
==== mathop-26.2 misc ops, corner cases FAILED
==== Contents of test case:
set res {}
lappend res [TestOp - 0 -2147483648] ;# -2**31
lappend res [TestOp - 0 -9223372036854775808] ;# -2**63
lappend res [TestOp / -9223372036854775808 -1]
lappend res [TestOp * 2147483648 2]
lappend res [TestOp * 9223372036854775808 2]
set res
---- Result was:
2147483648 -9223372036854775808 9223372036854775808 4294967296 18446744073709551616
---- Result should have been (exact matching):
2147483648 9223372036854775808 9223372036854775808 4294967296 18446744073709551616
==== mathop-26.2 FAILED
Novem Tcl no longer knows how to subtract integer values
at the LONG_MAX boundary correctly.
If I do the merges claimed for that checkin myself, I get
working code. Comparing with that checkin, I see that a large
number of
#ifndef TCL_WIDE_INT_IS_LONG
guards and the like have been removed in additon to
the merge. Something in that additional change is the
cause of the breakage.
Referenced by1
a64f1e873a[0aa8f12dcc] Restore minimum code to stop failing tests. check-in2013-08-13 19:26:35
dgp Ticket [0aa8f12dcc]: 4 changes
[History diff]2013-08-13 18:44:38
dgpplain2013-08-13 19:28:05
I committed to novem branch the minimum code restoration needed to make the failing tests pass again. Leaving the ticket open in case other aspects of that checkin need some review for errors that might not be covered in the test suite.
jan.nijtmanswiki2013-08-14 14:15:16
Hm, I don't remember committing that, but I remember experimenting with this in the novem branch. Apparently when I did the "merge trunk" I still had local changes in my environment which I forgot about, that's bad.
Should be restored now in full, this was not intended to be committed at all!
Log in (anonymous is fine) to add a comment.