X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-renameat.c;h=f767d714e91ffd580907cac2352f0832e4cc258c;hb=80c3530fa6f0b67feb8e3a01c6ae0f3074d8129d;hp=9ca17876537505c75ae8181768316fcbe49fa6b4;hpb=a31a41e52c0310445c29216c64920e85f91f3879;p=gnulib.git diff --git a/tests/test-renameat.c b/tests/test-renameat.c index 9ca178765..f767d714e 100644 --- a/tests/test-renameat.c +++ b/tests/test-renameat.c @@ -1,5 +1,5 @@ /* Tests of renameat. - Copyright (C) 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -83,6 +83,7 @@ main (void) ASSERT (renameat (AT_FDCWD, BASE "oo", 99, "bar") == -1); ASSERT (errno == EBADF); } + ASSERT (unlink (BASE "oo") == 0); /* Test basic rename functionality, using current directory. */ result = test_rename (do_rename, false);