From 8adebbd0f8cd0d68d6e7423f8b672a1cf2630106 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Wed, 3 Jan 2018 14:02:44 -0800 Subject: [PATCH] Add test case for PR #972 --- tests/playTests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/playTests.sh b/tests/playTests.sh index c93c58fe..b5ffadc2 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*