Cleaned up the testing a bit.
[fw/pdclib] / testing / sscan_sources.incl
index 78063a915e35e4608fd32876c15655a86672cda5..027935c682f24aa490ebfdf9470f637da235cdd4 100644 (file)
         int res = SCANFUNC( source + offset, __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 )