X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fstdio%2Fscanf_testcases.incl;h=71ddccce42b990564fc503b467a9d16f9d65c58b;hb=3d364130a3188aac2a7e91a64944930a78e3c86b;hp=e9680bc27a0a4feeffdc333ae4487a1a71a90971;hpb=07dc12745d8071b33dd6d14a41d8c686128fa68d;p=fw%2Fpdclib diff --git a/functions/stdio/scanf_testcases.incl b/functions/stdio/scanf_testcases.incl index e9680bc..71ddccc 100644 --- a/functions/stdio/scanf_testcases.incl +++ b/functions/stdio/scanf_testcases.incl @@ -875,7 +875,6 @@ // reading 0x80000000, i signed int i = -1; TESTSCAN( 1, 10, hexadecimal, 62, SCANPARMS( "%i", &i ) ); - printf( "found %d, expected -2147483648\n", i ); CHECK_FEQUAL( i, -2147483648, signed int, "%d" ); /* FIXME */ } { @@ -1163,18 +1162,30 @@ - The conversion should therefore result in a matching failure according to 7.19.6.2 paragraph 10. */ +#ifdef REGTEST + printf( " The following is likely to fail. Check stdio/scanf_testcases.c\n" + " for an explanation why.\n" ); +#endif TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hhx", &i ) ); /* May fail on regtest */ CHECK_EQUAL( i, 1 ); /* FIXME */ } { // reading -0x, x unsigned short i = 1; +#ifdef REGTEST + printf( " The following is likely to fail. Check stdio/scanf_testcases.c\n" + " for an explanation why.\n" ); +#endif TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hx", &i ) ); /* May fail on regtest */ CHECK_EQUAL( i, 1 ); /* FIXME */ } { // reading -0x, x unsigned int i = 1; +#ifdef REGTEST + printf( " The following is likely to fail. Check stdio/scanf_testcases.c\n" + " for an explanation why.\n" ); +#endif TESTSCAN( 0, -1, special, 0, SCANPARMS( "%x", &i ) ); /* May fail on regtest */ CHECK_EQUAL( i, 1 ); /* FIXME */ }