X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fvsnprintf.c;fp=functions%2Fstdio%2Fvsnprintf.c;h=9768c0a02504d45b9cf74a45b3ce51a8771c8d98;hp=fd9b4ac3fc34e5cb57477395371164b6536e3eaf;hb=1eca3189422aef89f2f4706a1eb43d045b1985bc;hpb=7d8bcd5425ad7ab8974d7b2eec2ca082c33d1286 diff --git a/functions/stdio/vsnprintf.c b/functions/stdio/vsnprintf.c index fd9b4ac..9768c0a 100644 --- a/functions/stdio/vsnprintf.c +++ b/functions/stdio/vsnprintf.c @@ -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 ) {