X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Fvfprintf.c;h=44c86358783e6b13b3ee13d6ef39e8c71c8add0f;hb=f2c41eedc0c43f9ea65c8e0fac0b642cb7a74b68;hp=b5dacb465144555f63330eef9c6b83ea9af8b7ee;hpb=483825725e75347a9784d05aa864845f3b3e8cfd;p=fw%2Fpdclib diff --git a/functions/stdio/vfprintf.c b/functions/stdio/vfprintf.c index b5dacb4..44c8635 100644 --- a/functions/stdio/vfprintf.c +++ b/functions/stdio/vfprintf.c @@ -69,11 +69,9 @@ static int testprintf( FILE * stream, const char * format, ... ) 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; }