diff options
author | Rob Landley <rob@landley.net> | 2020-06-09 15:49:10 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-06-09 15:49:10 -0500 |
commit | 53b2ceac9af6c4bfd120a170617e3bded526b427 (patch) | |
tree | 8798ec050b245c1743b4b07e674606d00e35854c | |
parent | ee25b232b47c741712e3576bf992d64d7c82ceac (diff) | |
download | toybox-53b2ceac9af6c4bfd120a170617e3bded526b427.tar.gz |
Tests for tar memory fix.
-rw-r--r-- | tests/tar.test | 12 |
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 |