summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-09-06 22:05:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-09-06 22:05:04 -0400
commit80eec18020f531abbdb2abbb919ab6c6fa34107c (patch)
treea12a50128e4ddab1a5b2ef2d6d9ddba200170fa9 /tests.sh
parente05826cc75949203ca2a9135cb52af8fa1481c83 (diff)
downloadbfs-80eec18020f531abbdb2abbb919ab6c6fa34107c.tar.xz
tests: Test hardlinks to symlinks
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 5729bb7..620bc2a 100755
--- a/tests.sh
+++ b/tests.sh
@@ -75,7 +75,9 @@ function make_links() {
touchp "$1/file"
ln -s file "$1/symlink"
ln "$1/file" "$1/hardlink"
+ ln -P "$1/symlink" "$1/hardsymlink"
ln -s nowhere "$1/broken"
+ ln -P "$1/broken" "$1/hardbroken"
ln -s symlink/file "$1/notdir"
ln -s loop "$1/loop"
mkdir -p "$1/deeply/nested/dir"