rename, renameat: Avoid test failures at NFS mounted locations.
authorBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 23:57:14 +0000 (00:57 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 23:57:14 +0000 (00:57 +0100)
commitcf3b6a11724d87837830e3e5390a6cacf6af1cd4
tree0811517086a70bb57eca8fe66c0e3c4e86c7a0b0
parent13cf7ad65ea3d630e0ad8e86eb366ab061c6dcac
rename, renameat: Avoid test failures at NFS mounted locations.

* tests/test-rename.h (dentry_exists, assert_nonexistent): New
functions.
(test_rename): Use assert_nonexistent.
* tests/test-rename.c: Include <dirent.h>.
* tests/test-renameat.c: Likewise.
Reported by Gary V. Vaughan <gary@gnu.org>.
ChangeLog
tests/test-rename.c
tests/test-rename.h
tests/test-renameat.c