Overview
| Artifact ID: | ad6ee1daf13282dcf7c00ffd2c820ec1f0496e29 |
|---|---|
| Ticket: | 440916ffffffffffffffffffffffffffffffffff
compat/strtoul.c fails tests |
| User & Date: | dgp on 2002-02-24 05:20:21 |
Changes
- icomment:
Logged In: YES user_id=80530 Things are .... different now. First let's just consider good old 32-bit Solaris. With current CVS HEAD sources (unpatched), if you force compat/strtoul.c to be compiled into Tcl, the resulting library has these test failures. ==== format-17.1 testing %d with wide FAILED ==== Contents of test case: list [catch {format %d 7810179016327718216} msg] $msg ---- Result was: 0 1819043144 ---- Result should have been (exact matching): 1 {integer value too large to represent} ==== format-17.1 FAILED ==== lindex-4.2 index = end--1 FAILED ==== Contents of test case: set x end--1 list [eval [list $lindex {a b c} $x]] [eval [list $lindex {a b c} $x]] ---- Result was: bad index "end--1": must be integer or end?-integer? ---- Result should have been (exact matching): {} {} ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== lindex-4.2 FAILED ==== lindex-12.2 index = end--1 FAILED ==== Contents of test case: set x end--1 catch { list [lindex {a b c} $x] [lindex {a b c} $x] } result set result ---- Result was: bad index "end--1": must be integer or end?-integer? ---- Result should have been (exact matching): {} {} ==== lindex-12.2 FAILED ==== lset-4.5 lset, not compiled, 3 args, index out of range FAILED ==== Contents of test case: set a {x y z} list [catch { eval [list $lset a [list end--1] w] } msg] $msg ---- Result was: 1 {bad index "end--1": must be integer or end?-integer?} ---- Result should have been (exact matching): 1 {list index out of range} ==== lset-4.5 FAILED ==== lset-4.11 lset, not compiled, 3 args, index out of range FAILED ==== Contents of test case: set a {x y z} list [catch { eval [list $lset a end--1 w] } msg] $msg ---- Result was: 1 {bad index "end--1": must be integer or end?-integer?} ---- Result should have been (exact matching): 1 {list index out of range} ==== lset-4.11 FAILED ==== lset-8.9 lset, not compiled, second index out of range FAILED ==== Contents of test case: set a {{b c} {d e} {f g}} list [catch {eval [list $lset a 2 end--1 h]} msg] $msg ---- Result was: 1 {bad index "end--1": must be integer or end?-integer?} ---- Result should have been (exact matching): 1 {list index out of range} ==== lset-8.9 FAILED ==== lset-8.10 lset, not compiled, second index out of range FAILED ==== Contents of test case: set a {{b c} {d e} {f g}} list [catch {eval [list $lset a {2 end--1} h]} msg] $msg ---- Result was: 1 {bad index "end--1": must be integer or end?-integer?} ---- Result should have been (exact matching): 1 {list index out of range} ==== lset-8.10 FAILED ==== obj-31.3 regenerate string rep of "end--1" FAILED==== Contents of test case: testobj freeallvars teststringobj set 1 end--0x1 testobj convert 1 end-offset testobj invalidateStringRep 1 ---- Result was: expected integer but got "--0x1" ---- Result should have been (exact matching): end--1 ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== obj-31.3 FAILED ==== obj-31.5 regenerate string rep of "end--bigInteger" FAILED ==== Contents of test case: testobj freeallvars teststringobj set 1 end--0x7fffffff testobj convert 1 end-offset testobj invalidateStringRep 1 ---- Result was: expected integer but got "--0x7fffffff" ---- Result should have been (exact matching): end--2147483647 ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== obj-31.5 FAILED ==== scan-4.38 Tcl_ScanObjCmd, base-8 integer scanning FAILED ==== Contents of test case: set x {} list [scan {+1238 -1239 123a} {%o%*s%o%*s%o} x y z] $x $y $z ---- Result was: 3 0 0 83 ---- Result should have been (exact matching): 3 83 -83 83 ==== scan-4.38 FAILED ==== scan-4.39 Tcl_ScanObjCmd, base-16 integer scanning FAILED ==== Contents of test case: set x {} list [scan {+1238 -123a 0123} {%x%x%x} x y z] $x $y $z ---- Result was: 3 0 0 291 ---- Result should have been (exact matching): 3 4664 -4666 291 ==== scan-4.39 FAILED ==== scan-5.6 integer scanning FAILED ==== Contents of test case: set a {}; set b {}; set c {}; set d {} list [scan "ab123-24642" "%2x %3x %3o %2o" a b c d] $a $b $c $d ---- Result was: 4 171 291 0 52 ---- Result should have been (exact matching): 4 171 291 -20 52 ==== scan-5.6 FAILED ==== string-6.55 string is integer, false on overflow FAILED ==== Contents of test case: list [string is integer -fail var +[largest_int]0] $var ---- Result was: 1 3 ---- Result should have been (exact matching): 0 -1 ==== string-6.55 FAILED Things are event more broken on the Alpha, but let's get the simple case fixed first. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"