Tk Library Source Code

View Ticket
Login
Ticket UUID: 620612
Title: Testsuite failures
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2002-10-09 05:37:37
Subsystem: crc Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-01-06 21:36:16
Resolution: None Closed By: patthoyts
    Closed on: 2003-01-06 14:36:16
Description:
I ran the tcllib testsuite, using a tclsh 8.3.4 on a
linux/ix86 system. The build directory was outside of
the tcllib source directory, actually a direct sibling.
Enclosed the log generated when testing crc.
User Comments: patthoyts added on 2003-01-06 21:36:16:
Logged In: YES 
user_id=202636

The issue turns out to be this:

tcl8.4: 
% format %#x [expr {0x80000000 >> 8}]
0x800000

tcl8.3:
% format %#x [expr {0x80000000 >> 8}]
0xff800000

Fixed by masking off the exposed bits.

patthoyts added on 2002-10-12 05:13:07:
Logged In: YES 
user_id=202636

The tests pass on tcl 8.4.0. The first failure is due to the
new lindex syntax which returns the entire list if the
second argument doesn't exist. Fixed this (it was a mistake
anyway).

The second one I am investigating. Under both 8.3 and 8.4
the polynomial lookup table is generated correctly but the
calculation is coming up with the correct numbers under 8.4
and not under 8.3. I'm investigating this. I presume it's
some kind of 64bit dependency.

andreas_kupries added on 2002-10-09 12:37:37:

File Added - 32675: LOG

Attachments: