aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tar.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tar.test b/tests/tar.test
index 8ed400e9..c2ca4895 100644
--- a/tests/tar.test
+++ b/tests/tar.test
@@ -250,6 +250,18 @@ rm fweep2 fweep2.tar
testcmd "longname" "tf $FILES/tar/long_path.tar" \
"$(printf 'long file name%86cTRAILING' ' ' | tr ' ' _)\n" "" ""
+mkdir -p links
+touch links/orig
+ln links/{orig,link1}
+ln links/{orig,link2}
+testcmd 'links' '-cf test.tar links' '' '' ''
+rm -rf links
+
+mkdir links
+for i in {0..12}; do touch links/orig$i; ln links/{orig,link}$i; done
+testcmd 'links2' '-cf test.tar links' '' '' ''
+rm -rf links
+
if false
then