- FILE * buffer;
- TESTCASE( ( buffer = fopen( "testfile", "wb" ) ) != NULL );
-#include "printf_testcases.incl"
- TESTCASE( fclose( buffer ) == 0 );
-#include "fprintf_reftest.incl"
+ FILE * target;
+ TESTCASE( ( target = tmpfile() ) != NULL );
+#include "printf_testcases.h"
+ TESTCASE( fclose( target ) == 0 );