-/* $Id$ */
-
/* rename( const char *, const char * )
This file is part of the Public Domain C Library (PDCLib).
#include <stdio.h>
#ifndef REGTEST
-#include <_PDCLIB_glue.h>
+
+#include "_PDCLIB_glue.h"
#include <string.h>
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
#include <stdlib.h>
/* NOREG as glibc overwrites existing destination file. */
TESTCASE_NOREG( rename( testfile1, testfile2 ) == -1 );
/* remove both files */
- remove( testfile1 );
- remove( testfile2 );
+ TESTCASE( remove( testfile1 ) == 0 );
+ TESTCASE( remove( testfile2 ) == 0 );
/* check that they're gone */
TESTCASE( fopen( testfile1, "r" ) == NULL );
TESTCASE( fopen( testfile2, "r" ) == NULL );
}
#endif
-