From: brailovich <91924341+brailovich@users.noreply.github.com> Date: Thu, 27 Jan 2022 00:53:11 +0000 (-0800) Subject: Update playTests.sh X-Git-Tag: v1.5.4^2~254^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7523385b98afce31747be2a0569089539ceb8e;p=thirdparty%2Fzstd.git Update playTests.sh --- diff --git a/tests/playTests.sh b/tests/playTests.sh index f19291a60..5a45247b3 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -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