X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fscanf_testcases.incl;h=71ddccce42b990564fc503b467a9d16f9d65c58b;hp=e9680bc27a0a4feeffdc333ae4487a1a71a90971;hb=f56f5d756f412e9c7058e2af4e36bc1de21dd642;hpb=61cd4c099107b37d2b485c2ceb21ad661c899309 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 */ }