Cleaned up the testing a bit.
[fw/pdclib] / testing / fscan_sources.incl
index a7dc18b71a47e4dcc59badb49085e3d9973c7bd1..243a17d8fde18cf26fd71f3499ca49c45304bfd1 100644 (file)
         int res = SCANFUNC( source, __VA_ARGS__ ); \
         if ( res != result ) \
         { \
-            rc += 1; \
+            TEST_RESULTS += 1; \
             printf( "FAILED: " __FILE__ ", line %d - expected result %d, got %d\n", __LINE__, result, res ); \
         } \
         if ( n != count ) \
         { \
-            rc += 1; \
+            TEST_RESULTS += 1; \
             printf( "FAILED: " __FILE__ ", line %d - expected count %d, got %d\n", __LINE__, count, n ); \
         } \
     } while ( 0 )