X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2F_PDCLIB%2Fprint.c;h=27b4bc26bab9b587ec755b6962d3be03eaa95e75;hb=1eca3189422aef89f2f4706a1eb43d045b1985bc;hp=3e48f2ad6569a9998d2c9d8ecfb8e961f055a497;hpb=7d8bcd5425ad7ab8974d7b2eec2ca082c33d1286;p=pdclib.old 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 ) {