X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fscanf_testcases.incl;h=a32d0cae35a9d040c16993d31c125032e205ee4d;hb=cbd7fc65775365c1c63b565cc7aee1093a069205;hp=3a2b54372f7c85a8e2d279f06ed60a6c04fdba65;hpb=e225d3c69eaaeb3203de2532bb4eb37d1f813de7;p=pdclib diff --git a/functions/stdio/scanf_testcases.incl b/functions/stdio/scanf_testcases.incl index 3a2b543..a32d0ca 100644 --- a/functions/stdio/scanf_testcases.incl +++ b/functions/stdio/scanf_testcases.incl @@ -1118,10 +1118,8 @@ CHECK_FALSE( memcmp( buffer, "abc", 4 ) ); } +#ifndef REGTEST // special bordercase - { - // reading -0x, x - unsigned char i = 1; /* Most existing libraries disagree with this test case, so a little explanation of why PDCLib chose the implementation it did might be necessary. All references are from ISO/IEC 9899:1999 "Programming @@ -1162,30 +1160,22 @@ - 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 */ + { + // reading -0x, x + unsigned char i = 1; + TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hhx", &i ) ); 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 */ + TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hx", &i ) ); 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 */ + TESTSCAN( 0, -1, special, 0, SCANPARMS( "%x", &i ) ); CHECK_EQUAL( i, 1 ); /* FIXME */ } +#endif