test-png

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 3 09:24:27 UTC 2025


 test-png |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 966e4922250e678f9f95455861701d2ba6d87cf7
Author: Akihiko Odaki <akihiko.odaki at daynix.com>
Date:   Mon Mar 3 13:42:38 2025 +0900

    Fix a syntax error in test-png
    
    Frediano Ziglio pointed out I introduced a syntax error with commit
    34787ba0b7846f9e62d4c41214864bd3a1282fcd.
    
    The syntax error made the test ineffective so it always passed. Fix
    it to make it functional again.
    
    Signed-off-by: Akihiko Odaki <akihiko.odaki at daynix.com>

diff --git a/test-png b/test-png
index 99c5e56..57fa27e 100755
--- a/test-png
+++ b/test-png
@@ -35,7 +35,7 @@ fi
 
 compare_images() {
     DIFF=$($MAGICK compare -metric AE $1 $2 - 2>&1 > /dev/null || true)
-    if [ "$DIFF" != "0 (0)" && "$DIFF" != "0" ]; then
+    if [ "$DIFF" != "0 (0)" -a "$DIFF" != "0" ]; then
         error "Images $1 and $2 are too different, diff $DIFF"
     fi
 }


More information about the Spice-commits mailing list