aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ln.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ln.test b/tests/ln.test
index 3e70cd83..9effcbd6 100755
--- a/tests/ln.test
+++ b/tests/ln.test
@@ -44,6 +44,14 @@ rm slink
testing "no_dereference" "ln -s dir slink &&
ln -n -s file slink 2>/dev/null || [ -L slink ] && readlink slink" \
"dir\n" "" ""
+rm slink
+
+testing "-T acts like -n" "ln -s dir slink &&
+ ln -Tsf file slink || [ -L slink ] && readlink slink" "file\n" "" ""
+rm slink
+
+testing "-T with dir" "ln -Ts file dir 2>/dev/null || echo yes" "yes\n" "" ""
+
rm -rf file dir slink
touch file1 file2 && mkdir dir