]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: restrict cp --link inode comparisons to compatible systems
authorPádraig Brady <P@draigBrady.com>
Thu, 12 Dec 2013 22:43:05 +0000 (22:43 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 13 Dec 2013 02:28:47 +0000 (02:28 +0000)
commit10ffe43d68f085995de5b95a8b301a9b7170eac2
treeb753df7a1637631da56648f9abaee793a87e7620
parentcbdb4d77d9984a22505a36f6d9b3a42423cbdd1f
tests: restrict cp --link inode comparisons to compatible systems

* tests/cp/link-deref.sh: On systems were cp can't determine if
gnulib linkat() emulation might create a symlink instead of a hardlink
to a symlink, copy.c will create a symlink to the symlink so that
it has more control over its metadata.  Also even if the system
supports this operation, the particular file system under test may not.
So avoid the hardlinked symlink verification in these cases.
This fixes a false failure on aix, solaris and freebsd.
tests/cp/link-deref.sh