]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fprintf_reftest.incl
Moved test-related files to testing subdirectory (i.e., out of the way).
[pdclib.old] / functions / stdio / fprintf_reftest.incl
diff --git a/functions/stdio/fprintf_reftest.incl b/functions/stdio/fprintf_reftest.incl
deleted file mode 100644 (file)
index afc89b9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-    {
-    char readbuffer[2000];
-    char refbuffer[2000];
-    size_t readcounter;
-    TESTCASE( ( buffer = fopen( "testfile", "r" ) ) != NULL );
-    readcounter = fread( readbuffer, 1, 2000, buffer );
-    TESTCASE( fclose( buffer ) == 0 );
-    TESTCASE( ( buffer = fopen( "functions/stdio/printf_reference.txt", "r" ) ) != NULL );
-    TESTCASE( fread( refbuffer, 1, 2000, buffer ) == readcounter );
-    TESTCASE( fclose( buffer ) == 0 );
-    TESTCASE( memcmp( readbuffer, refbuffer, readcounter ) == 0 );
-    TESTCASE( remove( "testfile" ) == 0 );
-    }