summaryrefslogtreecommitdiff
path: root/tests/test-rename.h
Commit message (Collapse)AuthorAgeFilesLines
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* rename, renameat tests: Avoid test failures on FreeBSD 6.4.Bruno Haible2011-09-191-2/+2
| | | | | * tests/test-rename.h (test_rename): Allow error code EEXIST. * tests/test-renameat.c (main): Likewise.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* rename, renameat: Avoid test failures at NFS mounted locations.Bruno Haible2010-12-251-5/+10
| | | | | * tests/test-rename.h (assert_nonexistent): Remove the old directory, so that subsequent mkdir calls succeed.
* rename, renameat: Avoid test failures on OSF/1 5.1.Bruno Haible2010-12-241-3/+3
| | | | | | * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as alternative error codes. * tests/test-renameat.c (main): Likewise.
* test-rename.h: fix compilation failureJim Meyering2010-11-191-0/+1
| | | | * tests/test-rename.h (test_rename): Add omitted "}".
* rename, renameat: Avoid test failures at NFS mounted locations.Bruno Haible2010-11-141-6/+45
| | | | | | | | | * 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>.
* rename test: Add comments.Bruno Haible2010-11-131-275/+733
| | | | * tests/test-rename.h (test_rename): Add structure and comments.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* tests: fix license on several testsEric Blake2009-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of GPLv2+ was a relic of copy-and-paste, and not intentional. * tests/test-des.c: Update to GPLv3+. * tests/test-flock.c: Likewise. * tests/test-fsync.c: Likewise. * tests/test-futimens.h: Likewise. * tests/test-gc-arcfour.c: Likewise. * tests/test-gc-arctwo.c: Likewise. * tests/test-gc-des.c: Likewise. * tests/test-gc-hmac-md5.c: Likewise. * tests/test-gc-hmac-sha1.c: Likewise. * tests/test-gc-md2.c: Likewise. * tests/test-gc-md4.c: Likewise. * tests/test-gc-md5.c: Likewise. * tests/test-gc-pbkdf2-sha1.c: Likewise. * tests/test-gc-rijndael.c: Likewise. * tests/test-gc-sha1.c: Likewise. * tests/test-gc.c: Likewise. * tests/test-getcwd.c: Likewise. * tests/test-link.c: Likewise. * tests/test-link.h: Likewise. * tests/test-lutimens.h: Likewise. * tests/test-md2.c: Likewise. * tests/test-md4.c: Likewise. * tests/test-mkdir.h: Likewise. * tests/test-rename.c: Likewise. * tests/test-rename.h: Likewise. * tests/test-safe-alloc.c: Likewise. * tests/test-utimens-common.h: Likewise. * tests/test-utimens.h: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* rename: detect FreeBSD bugEric Blake2009-11-091-2/+4
| | | | | | | | | | | | | rename("link-to-file/","new") mistakenly succeeded. * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with slash on symlink. * modules/renameat-tests (Depends-on): Add filenamecat. * tests/test-rename.h (test_rename): Allow one more errno. * tests/test-renameat.c (main): Likewise. * doc/posix-functions/rename.texi (rename): Document the bug. Signed-off-by: Eric Blake <ebb9@byu.net>
* maint: prefer 'file system' over 'filesystem'Eric Blake2009-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/posix-functions/fstatat.texi (fstatat): Likewise. * doc/posix-functions/lstat.texi (lstat): Likewise. * lib/file-has-acl.c (file_has_acl): Likewise. * lib/fwriteerror.c [TEST]: Likewise. * tests/test-areadlink.h (test_areadlink): Likewise. * tests/test-areadlinkat-with-size.c (main): Likewise. * tests/test-areadlinkat.c (main): Likewise. * tests/test-canonicalize-lgpl.c (main): Likewise. * tests/test-canonicalize.c (main): Likewise. * tests/test-fstatat.c (main): Likewise. * tests/test-linkat.c (main): Likewise. * tests/test-lstat.h (test_lstat_func): Likewise. * tests/test-mkdir.h (test_mkdir): Likewise. * tests/test-readlink.h (test_readlink): Likewise. * tests/test-remove.c (main): Likewise. * tests/test-rename.h (test_rename): Likewise. * tests/test-renameat.c (main): Likewise. * tests/test-rmdir.h (test_rmdir_func): Likewise. * tests/test-symlink.h (test_symlink): Likewise. * tests/test-symlinkat.c (main): Likewise. * tests/test-unlink.h (test_unlink_func): Likewise. * tests/test-unlinkat.c (main): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* rename-tests: new test, exposes several platform bugsEric Blake2009-10-021-0/+444
This test passes on GNU/Linux, OpenBSD, and Cygwin 1.7. Elsewhere, this test fails because of at least these bugs: Solaris 10, cygwin 1.5.x, and mingw all mistakenly succeed on rename("file","other/"). Solaris 9 and the gnulib replacement for SunOS 4.1 mistakenly succeed on rename("file/","other"). Cygwin 1.5.x and mingw mistakenly succeed on rename("dir","d/."). Cygwin 1.5.x and NetBSD 1.6 (even with the gnulib replacement) mistakenly reduce the link count on rename("hard1","hard2"). * modules/rename-tests: New file. * tests/test-rename.h: Likewise. * tests/test-rename.c: Likewise. * doc/posix-functions/rename.texi (rename): Improve documentation, including bugs that will eventually be fixed in gnulib. Signed-off-by: Eric Blake <ebb9@byu.net>