X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fvsnprintf.c;h=9768c0a02504d45b9cf74a45b3ce51a8771c8d98;hp=fd9b4ac3fc34e5cb57477395371164b6536e3eaf;hb=07810dbd8f3e21618208b923e293715774c80ade;hpb=60e7b4f8e96c76b5b459e062e3b7747bc7055ec2 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 ) {