#endif
#ifdef TEST
+#define _PDCLIB_FILEID "stdio/vfprintf.c"
+#define FPRINTF_FUNCTION
#include <stdlib.h>
#include <limits.h>
#include <string.h>
return i;
}
-#define TESTCASE_SPRINTF( x )
-
int main( void )
{
FILE * target;
- TESTCASE( ( target = fopen( testfile, "wb" ) ) != NULL );
+ TESTCASE( ( target = tmpfile() ) != NULL );
#include "printf_testcases.incl"
TESTCASE( fclose( target ) == 0 );
-#include "fprintf_reftest.incl"
- TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}