diff --git a/tests/short-first-segment.sh b/tests/short-first-segment.sh index ea0e3310..1e33dceb 100755 --- a/tests/short-first-segment.sh +++ b/tests/short-first-segment.sh @@ -6,13 +6,13 @@ READELF=${READELF:-readelf} EXEC_NAME="short-first-segment" -if ! gzip --version >/dev/null; then - echo "skipping test: gzip not found" +if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then + echo "skipping test: supported only on x86_64 Linux" exit 77 fi -if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then - echo "skipping test: supported only on x86_64 Linux" +if ! gzip --version >/dev/null; then + echo "skipping test: gzip not found" exit 77 fi