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