aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-06-09 15:49:10 -0500
committerRob Landley <rob@landley.net>2020-06-09 15:49:10 -0500
commit53b2ceac9af6c4bfd120a170617e3bded526b427 (patch)
tree8798ec050b245c1743b4b07e674606d00e35854c /tests
parentee25b232b47c741712e3576bf992d64d7c82ceac (diff)
downloadtoybox-53b2ceac9af6c4bfd120a170617e3bded526b427.tar.gz
Tests for tar memory fix.
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