]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip manual GIF metadata test on MS-Windows
authorStefan Kangas <stefankangas@gmail.com>
Mon, 12 Sep 2022 13:14:42 +0000 (15:14 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 12 Sep 2022 13:15:16 +0000 (15:15 +0200)
* test/manual/image-tests.el
(image-skip-unless): Add new arg CONDITION.
(image-tests-image-metadata/gif): Skip test on MS-Windows when
using native image API.  (Bug#57691)

test/manual/image-tests.el

index c66080cf029230005fe700d38656a18659f472d3..f867047d08ebd839f1c79bbd59eb00654c41c744 100644 (file)
 
 ;;; Code:
 
-(defmacro image-skip-unless (format)
-  `(skip-unless (and (display-images-p)
-                     (image-type-available-p ,format))))
+(defmacro image-skip-unless (format &rest condition)
+  `(skip-unless (or (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)
+  (image-skip-unless 'gif (not w32-use-native-image-API))
   (should (memq 'delay
                 (image-metadata
                  (create-image (cdr (assq 'gif image-tests--images)))))))