X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvfprintf.c;h=7ab3167499a8d2f57360d01a1b3a458abf4b477d;hb=82cd4468d130cac87062bc6e4fc5bf0f593785d3;hp=6a5a781861d3506623919fcd9fc0e67ecf6dfc5c;hpb=d1d0e8dbd23a9691841c61c2d30d0ce7343f9adb;p=pdclib.old diff --git a/functions/stdio/vfprintf.c b/functions/stdio/vfprintf.c index 6a5a781..7ab3167 100644 --- a/functions/stdio/vfprintf.c +++ b/functions/stdio/vfprintf.c @@ -49,6 +49,8 @@ int vfprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDC #endif #ifdef TEST +#define _PDCLIB_FILEID "stdio/vfprintf.c" +#define FPRINTF_FUNCTION #include #include #include @@ -64,15 +66,12 @@ static int testprintf( FILE * stream, const char * format, ... ) return i; } -#define TESTCASE_SPRINTF( x ) - int main( void ) { FILE * target; - TESTCASE( ( target = fopen( testfile, "wb" ) ) != NULL ); + TESTCASE( ( target = fopen( testfile, "wb+" ) ) != NULL ); #include "printf_testcases.incl" TESTCASE( fclose( target ) == 0 ); -#include "fprintf_reftest.incl" TESTCASE( remove( testfile ) == 0 ); return TEST_RESULTS; }