Switched to tmpfile() where appropriate.
[fw/pdclib] / functions / stdio / fprintf.c
index b7bd43a19ec7e8c748b9dc9b4f11ab4439ceb99b..bac19bce869ef3972ad83845847f1f32590c0a45 100644 (file)
@@ -36,11 +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 );
-#include "fprintf_reftest.incl"
-    TESTCASE( remove( "testing/testfile" ) == 0 );
     return TEST_RESULTS;
 }