Tcl Source Code

View Ticket
Login
Ticket UUID: 1246264
Title: binary.test: nonPortable tests...
Type: Bug Created on: 2005-07-27 19:02:26
Submitter: dgp Assigned to: kennykb
Subsystem: 12. ByteArray Object Severity:
Priority: 5 Medium Last modified: 2005-08-06 01:24:56
Status: Closed Closed by: kennykb
Resolution: Fixed Closed on: 2005-08-05 18:24:56
Version: obsolete: 8.5a4
Description:
dgpcurious about the "nonPortable" tests in binary.test
[14:51]dgpNaN formatting?
[14:54]kbk14.12 is crap. That value isn't the
canonical NaN, which will be either 7ff4 (PA-RISC) or
7ff8 (everything else).
[14:55]kbk40.1 should be portable but, but the
comment is wrong - it's NaN, not overflow.
[14:55]dgp---- Result was:
1 -NaN(7ffffe0000000)
---- Result should have been (exact matching):
1 -NaN
==== binary-40.1 FAILED
[14:56]kbkOK, OK, 40.1 isn't right.  In fact, the NaN
that it returns is the right one.
[14:56]kbk40.3 is exactly the same test, which isn't
endianity-dependent.
[14:57]kbkLikewise, 40.4 and 40.6 appear to be the
same test, again not endianity dependent, but they're
looking for -NaN(7ffffffffffff) rather than the
canonical NaN.