X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffprintf.c;h=bac19bce869ef3972ad83845847f1f32590c0a45;hb=f0c4a925a835e6efd444b2de5406219551dc65d4;hp=38fb9b81fdae0dcd819820006c9caf7cac7902fe;hpb=82cd4468d130cac87062bc6e4fc5bf0f593785d3;p=pdclib.old diff --git a/functions/stdio/fprintf.c b/functions/stdio/fprintf.c index 38fb9b8..bac19bc 100644 --- a/functions/stdio/fprintf.c +++ b/functions/stdio/fprintf.c @@ -36,10 +36,9 @@ int fprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCL int main( void ) { FILE * target; - TESTCASE( ( target = fopen( "testing/testfile", "wb+" ) ) != NULL ); + TESTCASE( ( target = tmpfile() ) != NULL ); #include "printf_testcases.incl" TESTCASE( fclose( target ) == 0 ); - TESTCASE( remove( "testing/testfile" ) == 0 ); return TEST_RESULTS; }