]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update playTests.sh
authorbrailovich <91924341+brailovich@users.noreply.github.com>
Thu, 27 Jan 2022 00:53:11 +0000 (16:53 -0800)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 00:53:11 +0000 (16:53 -0800)
tests/playTests.sh

index f19291a6063e798ed424b287e6583c96650b8368..5a45247b3b4d0b860c646ddd8bb94e2aa103e417 100755 (executable)
@@ -390,6 +390,18 @@ println "\n===>  recursive mode test "
 # combination of -r with empty list of input file
 zstd -c -r < tmp > tmp.zst
 
+# combination of -r with empty folder
+mkdir -p tmpEmptyDir
+zstd -r tmpEmptyDir 2>tmplog2
+if [grep "aborting" tmplog2]; then
+  println "Should not abort on empty directory"
+  rm -rf tmplog2
+  rm -rf tmpEmptyDir
+  die
+fi
+rm -rf tmplog2
+rm -rf tmpEmptyDir
+
 
 println "\n===>  file removal"
 zstd -f --rm tmp