X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frename.c;h=cba22c8515a1c0a49170ec9f91a9f685b93547e7;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=409005f933776055198186e34713cf6f1ab9bd3f;hpb=55cf35957bf8dec0a489ba758c02c83303a5eb50;p=pdclib diff --git a/functions/stdio/rename.c b/functions/stdio/rename.c index 409005f..cba22c8 100644 --- a/functions/stdio/rename.c +++ b/functions/stdio/rename.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* rename( const char *, const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,7 +7,8 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> + +#include "_PDCLIB_glue.h" #include @@ -33,7 +32,8 @@ int rename( const char * old, const char * new ) #endif #ifdef TEST -#include <_PDCLIB_test.h> + +#include "_PDCLIB_test.h" #include @@ -73,8 +73,8 @@ int main( void ) /* 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 ); @@ -82,4 +82,3 @@ int main( void ) } #endif -