Fix the difflink test

Hardlinking a symlink produces hardlink on BSD and symlink
on GNU/Linux. Avoid the ambiguity.

* tests/difflink.at: Create hard link from a regular file.
This commit is contained in:
Sergey Poznyakoff
2018-12-28 17:53:35 +02:00
parent 9d1993f651
commit 1ed62596cf

View File

@@ -20,14 +20,14 @@ AT_TAR_CHECK([
mkdir a
genfile -f a/x
ln -s x a/y
ln a/y a/z
ln a/x a/z
tar cf a.tar a/x a/y a/z
rm a/z
ln -s x a/z
tar df a.tar
],
[1],
[a/z: Not linked to a/y
[a/z: Not linked to a/x
],
[],
[],[],[ustar]) # Testing one format is enough