5 TESTCASE( ( buffer = fopen( "testfile", "r" ) ) != NULL );
6 readcounter = fread( readbuffer, 1, 2000, buffer );
7 TESTCASE( fclose( buffer ) == 0 );
8 TESTCASE( ( buffer = fopen( "functions/stdio/printf_reference.txt", "r" ) ) != NULL );
9 TESTCASE( fread( refbuffer, 1, 2000, buffer ) == readcounter );
10 TESTCASE( fclose( buffer ) == 0 );
11 TESTCASE( memcmp( readbuffer, refbuffer, readcounter ) == 0 );
12 TESTCASE( remove( "testfile" ) == 0 );