diff --git a/tests/playTests.sh b/tests/playTests.sh index a772b61ff7c..887d7f09fe7 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -304,6 +304,11 @@ zstd -d -f tmp_corrupt.zst --no-check zstd -d -f tmp_corrupt.zst --check --no-check # final flag overrides zstd -d -f tmp.zst --no-check +if [ -n "$(which readelf)" ]; then + println "test: check if binary has executable stack" + readelf -lW "$ZSTD_BIN" | grep 'GNU_STACK .* RW ' || die "zstd binary has executable stack!" +fi + println "\n===> zstdgrep tests" ln -sf "$ZSTD_BIN" zstdcat rm -f tmp_grep