]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsprintf.c
Better error reporting on printf's.
[pdclib] / functions / stdio / vsprintf.c
index 803485e48032528cb390dcf899469d202de17185..bdb8a796df47b081ab6774532879e0dc3da85f4a 100644 (file)
@@ -20,6 +20,7 @@ int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, v
 #endif
 
 #ifdef TEST
+#define _PDCLIB_FILEID "stdio/vsprintf.c"
 #include <_PDCLIB_test.h>
 
 #include <limits.h>
@@ -36,9 +37,6 @@ static int testprintf( char * s, const char * format, ... )
     return i;
 }
 
-#define TESTCASE_SPRINTF( x ) if ( strcmp( target, x ) == 0 ) {} \
-                              else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - \"%s\" != %s\n", __LINE__, target, #x ); }
-
 int main( void )
 {
     char target[100];