]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change in test/manual/image-tests.el
authorStefan Kangas <stefankangas@gmail.com>
Tue, 13 Sep 2022 09:06:11 +0000 (11:06 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 13 Sep 2022 09:06:40 +0000 (11:06 +0200)
* test/manual/image-tests.el (image-skip-unless):
(image-tests-image-metadata/gif): Fix last change.

test/manual/image-tests.el

index f867047d08ebd839f1c79bbd59eb00654c41c744..7f1eab9512e643ed1d85f58794ab7fbcaa704bfd 100644 (file)
@@ -32,9 +32,9 @@
 ;;; Code:
 
 (defmacro image-skip-unless (format &rest condition)
-  `(skip-unless (or (and (display-images-p)
-                         (image-type-available-p ,format))
-                    ,@condition)))
+  `(skip-unless (and (and (display-images-p)
+                          (image-type-available-p ,format))
+                     ,@condition)))
 
 (defconst image-tests--images
   `((gif . ,(expand-file-name "test/data/image/black.gif"
 ;;       contain metadata.
 
 (ert-deftest image-tests-image-metadata/gif ()
-  (image-skip-unless 'gif (not w32-use-native-image-API))
+  (image-skip-unless 'gif
+                (not (bound-and-true-p w32-use-native-image-API)))
   (should (memq 'delay
                 (image-metadata
                  (create-image (cdr (assq 'gif image-tests--images)))))))