]> pd.if.org Git - pdclib/blobdiff - functions/stdio/snprintf.c
Better error reporting on printf's.
[pdclib] / functions / stdio / snprintf.c
index 851aefb5b699ccc859909ab6937e4b40755b6ff6..3cc30fcba55a4fe3eec0803f86219e207fb05610 100644 (file)
@@ -24,6 +24,7 @@ int snprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict
 #endif
 
 #ifdef TEST
+#define _PDCLIB_FILEID "stdio/snprintf.c"
 #include <_PDCLIB_test.h>
 
 #include <string.h>
@@ -31,9 +32,6 @@ int snprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict
 
 #define testprintf( s, format, ... ) snprintf( s, 100, format, __VA_ARGS__ )
 
-#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];