Overview
| Artifact ID: | 0449af7cf442903bd0f8e4681f75266da27ad8a8 |
|---|---|
| Ticket: | 438808ffffffffffffffffffffffffffffffffff
Some error in test suite : cmdAH-16.3 |
| User & Date: | rox on 2001-07-07 01:37:56 |
Changes
- closedate changed to: "2001-07-06T18:37:56"
- closer changed to: "rox"
- icomment:
Logged In: YES user_id=59260 I've test this program on Linux and HPUX11 : <----> #include <stdio.h> #include <stdlib.h> int main () { long int result; #define TEST(chaine,base) result=strtol(chaine,NULL,base); \ fprintf(stdout,"Testing with\"%s\",%i => %li:[ %xi ] \n",chaine, base,result,result) TEST("333",0); TEST("333",8); TEST("333",10); TEST("333",16); TEST("0333",0); TEST("0333",8); TEST("0333",10); TEST("0333",16); TEST("0x333",0);TEST("0x333",8); TEST("0x333",10); TEST("0x333",16); return EXIT_SUCCESS; } <----> And this is the result : Linux : Testing with"333",0 => 333:[ 14di ] Testing with"333",8 => 219:[ dbi ] Testing with"333",10 => 333:[ 14di ] Testing with"333",16 => 819:[ 333i ] Testing with"0333",0 => 219:[ dbi ] Testing with"0333",8 => 219:[ dbi ] Testing with"0333",10 => 333:[ 14di ] Testing with"0333",16 => 819:[ 333i ] Testing with"0x333",0 => 819:[ 333i ] Testing with"0x333",8 => 0:[ 0i ] Testing with"0x333",10 => 0:[ 0i ] Testing with"0x333",16 => 819:[ 333i ] And for HP11: Testing with"333",0 => 333:[ 14di ] Testing with"333",8 => 219:[ dbi ] Testing with"333",10 => 333:[ 14di ] Testing with"333",16 => 819:[ 333i ] Testing with"0333",0 => 219:[ dbi ] Testing with"0333",8 => 219:[ dbi ] Testing with"0333",10 => 333:[ 14di ] Testing with"0333",16 => 819:[ 333i ] Testing with"0x333",0 => 819:[ 333i ] Testing with"0x333",8 => 0:[ 0i ] Testing with"0x333",10 => 0:[ 0i ] Testing with"0x333",16 => 819:[ 333i ] So EXACTLY the SAME !!! So it wasn't an error in strtol in HPUX11 What is it ? I don't already know , but I know what it isn't ... Try to had more precise later ... ( When I've got some little time to test this more hard ... ) - login: "rox"
- mimetype: "text/plain"
- username: "rox"