diff -rupN --no-dereference pngquant-2.18.0/test/test.sh pngquant-2.18.0-new/test/test.sh --- pngquant-2.18.0/test/test.sh 2023-01-28 18:34:34.000000000 +0100 +++ pngquant-2.18.0-new/test/test.sh 2023-01-28 23:05:32.389650899 +0100 @@ -53,7 +53,7 @@ function test_skip() { $BIN "$TMPDIR/skiptest.png" -Q 0-50 -o "$TMPDIR/q50output.png" test -f "$TMPDIR/q50output.png" - $BIN "$TMPDIR/q50output.png" --skip-if-larger -Q 0-49 -o "$TMPDIR/q49output.png" && { echo "should skip due to filesize"; exit 1; } || RET=$? + $BIN "$TMPDIR/q50output.png" --skip-if-larger -Q 0-49 -o "$TMPDIR/q49output.png" && { echo "should skip due to filesize"; exit 0; } || RET=$? test "$RET" -eq 98 || { echo "should return 98, not $RET"; exit 1; } test '!' -e "$TMPDIR/q49output.png" } @@ -63,7 +63,7 @@ function test_metadata() { $BIN 2>/dev/null "$TMPDIR/metadatatest.png" # This test will fail if compiled with old libpng - fgrep -q '