]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsnprintf.c
Improved reporting by printf tests.
[pdclib] / functions / stdio / vsnprintf.c
index fd9b4ac3fc34e5cb57477395371164b6536e3eaf..9768c0a02504d45b9cf74a45b3ce51a8771c8d98 100644 (file)
@@ -64,7 +64,8 @@ static int testprintf( char * s, size_t n, const char * format, ... )
     return i;
 }
 
-#define TESTCASE_SPRINTF( x ) TESTCASE( x )
+#define TESTCASE_SPRINTF( x ) if ( strcmp( buffer, x ) == 0 ) {} \
+                              else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - \"%s\" != %s\n", __LINE__, buffer, #x ); }
 
 int main( void )
 {