X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffprintf.c;h=bac19bce869ef3972ad83845847f1f32590c0a45;hp=38fb9b81fdae0dcd819820006c9caf7cac7902fe;hb=6c8c4f80e32177f27f89b4aff3b7568a7afd4041;hpb=33ed95661442997b6fcafae16d9e0ab6871b058a 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; }