From: Nick Terrell Date: Wed, 3 Jan 2018 22:02:44 +0000 (-0800) Subject: Add test case for PR #972 X-Git-Tag: v1.3.4~1^2~96^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F973%2Fhead;p=thirdparty%2Fzstd.git Add test case for PR #972 --- diff --git a/tests/playTests.sh b/tests/playTests.sh index c93c58fe8..b5ffadc23 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -190,6 +190,13 @@ $ZSTD -t tmp1.zst tmp2.zst $ZSTD -dc tmp1.zst tmp2.zst $ZSTD tmp1.zst tmp2.zst -o "$INTOVOID" $ZSTD -d tmp1.zst tmp2.zst -o tmp +touch tmpexists +$ZSTD tmp1 tmp2 -f -o tmpexists +$ZSTD tmp1 tmp2 -o tmpexists && die "should have refused to overwrite" +# Bug: PR #972 +if [ "$?" -eq 139 ]; then + die "should not have segfaulted" +fi rm tmp*