Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a103551af32db83c2d81e26ef64ee2ff0ca98d83
Ticket: 0aa8f12dccff837131987e789d7283909e4b8bf2
mathop tests broken on novem
User & Date: dgp on 2013-08-13 18:44:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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.
    
  5. foundin changed to: "novem"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "48. Number Handling"
  14. title changed to: "mathop tests broken on novem"
  15. type changed to: "Bug"