X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Frename.c;h=6b1e1b592f23bff2f62f2a6150c7e5c211cae75f;hp=409005f933776055198186e34713cf6f1ab9bd3f;hb=a7a8d2f1c85c2d7760d4d3479e90466cc3a81b04;hpb=afde3daa4992d49e190a6e8677e7317e0d367c59 diff --git a/functions/stdio/rename.c b/functions/stdio/rename.c index 409005f..6b1e1b5 100644 --- a/functions/stdio/rename.c +++ b/functions/stdio/rename.c @@ -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 );