Mercurial > hg > octave-jordi > gnulib-hg
comparison modules/rename-tests @ 12091:4884000a2d0c
rename-tests: new test, exposes several platform bugs
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>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sat, 26 Sep 2009 17:22:15 -0600 |
parents | |
children | b07a0a61b0c1 |
comparison
equal
deleted
inserted
replaced
12090:b0d4133f4100 | 12091:4884000a2d0c |
---|---|
1 Files: | |
2 tests/test-rename.h | |
3 tests/test-rename.c | |
4 | |
5 Depends-on: | |
6 errno | |
7 link | |
8 lstat | |
9 progname | |
10 stdbool | |
11 symlink | |
12 sys_stat | |
13 | |
14 configure.ac: | |
15 | |
16 Makefile.am: | |
17 TESTS += test-rename | |
18 check_PROGRAMS += test-rename | |
19 test_rename_LDADD = $(LDADD) @LIBINTL@ |