_PDCLIB_close( stream->handle );
if ( previous != NULL )
{
- previous = current->next;
+ previous->next = current->next;
}
else
{
int main( void )
{
- /* FIXME: This is basically fopen() checking. Flushing and buffer-freeing is not checked. */
+#ifndef REGTEST
struct _PDCLIB_file_t * file1;
struct _PDCLIB_file_t * file2;
TESTCASE( _PDCLIB_filelist == NULL );
TESTCASE( fclose( file2 ) == 0 );
TESTCASE( _PDCLIB_filelist == NULL );
system( "rm testfile1 testfile2" );
+#else
+ puts( " NOTEST fclose() test driver is PDCLib-specific." );
+#endif
return TEST_RESULTS;
}