summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-31 18:51:08 +0000
committerJim Meyering <jim@meyering.net>1999-01-31 18:51:08 +0000
commit9f0e21b7ca54b64d484fc2582d1b24a500caff17 (patch)
tree86f88d10c41e87123e0470018a6d718ee45f55cd /tests
parent7442141536af58c26fe30c3bb1890e5722ef08f2 (diff)
downloadcoreutils-9f0e21b7ca54b64d484fc2582d1b24a500caff17.tar.xz
new test: Create a hard link to a dangling symlink.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ln/misc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ln/misc b/tests/ln/misc
index 45cedbcd7..6fe436301 100755
--- a/tests/ln/misc
+++ b/tests/ln/misc
@@ -93,6 +93,10 @@ touch a b || test_failure=1
ln b b~ || test_failure=1
ln -V simple -f -b a b || fail=1
+# Create a hard link to a dangling symlink.
+ln -s /no-such-dir || fail=1
+ln no-such-dir hard-to-dangle || fail=1
+
cd ..
../../src/rm -rf $tmp