Disabled 'special case' tests for regression.
authorsolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Mon, 19 Jul 2010 09:00:16 +0000 (09:00 +0000)
committersolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Mon, 19 Jul 2010 09:00:16 +0000 (09:00 +0000)
git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@446 546481bc-9713-0410-bf18-d3337bbf4a3e

functions/stdio/fscan_sources.incl
functions/stdio/scanf_testcases.incl
functions/stdio/sscan_sources.incl

index 6502356878096bd424580e4178f1b057b0f72855..704c5428e8065e38cf67217694fe20393cac3fa6 100644 (file)
     TESTCASE( fwrite( "abcdefgh-ijklmnop[qrs%uvw]xyz", 1, 29, alpha ) == 29 );
     rewind( alpha );
 
+#ifndef REGTEST
     FILE * special = fopen( "scanf_testdata_special", "wb+" );
     TESTCASE( special != NULL );
     TESTCASE( fwrite( "-0xz\n", 1, 5, special ) == 5 );
     rewind( special );
+#endif
 
 
 /* fscan */
index 3a2b54372f7c85a8e2d279f06ed60a6c04fdba65..a32d0cae35a9d040c16993d31c125032e205ee4d 100644 (file)
     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
        - 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
index 490d95df5fbf2389f9054346beb0944ad40fb3e1..78063a915e35e4608fd32876c15655a86672cda5 100644 (file)
@@ -13,7 +13,9 @@
                                "+01777777777777777777777\n"
                                "-01777777777777777777777\n";
     char const * alpha       = "abcdefgh-ijklmnop[qrs%uvw]xyz";
+#ifndef REGTEST
     char const * special     = "-0xz\n";
+#endif
 
 
 /* sscan */