X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fprint.c;h=27b4bc26bab9b587ec755b6962d3be03eaa95e75;hp=3e48f2ad6569a9998d2c9d8ecfb8e961f055a497;hb=07810dbd8f3e21618208b923e293715774c80ade;hpb=60e7b4f8e96c76b5b459e062e3b7747bc7055ec2 diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index 3e48f2a..27b4bc2 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -538,7 +538,8 @@ static int testprintf( char * buffer, size_t n, const char * format, ... ) #define TEST_CONVERSION_ONLY -#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 ) {