X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvsprintf.c;h=d3920fa5884e754ebbf49fb5721ad70e42d4fb12;hb=1eca3189422aef89f2f4706a1eb43d045b1985bc;hp=733dcd452807f882d56b14af88dd7669a26ac1df;hpb=7d8bcd5425ad7ab8974d7b2eec2ca082c33d1286;p=pdclib.old diff --git a/functions/stdio/vsprintf.c b/functions/stdio/vsprintf.c index 733dcd4..d3920fa 100644 --- a/functions/stdio/vsprintf.c +++ b/functions/stdio/vsprintf.c @@ -36,7 +36,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 ) {