]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix two tests for --without-all build
authorAndrea Corallo <acorallo@gnu.org>
Thu, 27 Jun 2024 13:32:03 +0000 (15:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 06:11:46 +0000 (08:11 +0200)
* test/src/image-tests.el
(image-tests-image-mask-p/error-on-nongraphical-display)
(image-tests-image-metadata/error-on-nongraphical-display): xpm images
are not supported in all configurations so use xbm for non graphical
display tests.

(cherry picked from commit 6f9f9a2155542d6452847a9311772c399298c4c8)

test/src/image-tests.el

index 24e60fb100fb0652606459f74f75c22f525f6f0b..e321b80e7a8cee5f659208e697a602f46ba7f568 100644 (file)
 
 (ert-deftest image-tests-image-mask-p/error-on-nongraphical-display ()
   (skip-when (display-images-p))
-  (should-error (image-mask-p (cdr (assq 'xpm image-tests--images)))))
+  (should-error (image-mask-p (cdr (assq 'xbm image-tests--images)))))
 
 (ert-deftest image-tests-image-metadata/error-on-nongraphical-display ()
   (skip-when (display-images-p))
-  (should-error (image-metadata (cdr (assq 'xpm image-tests--images)))))
+  (should-error (image-metadata (cdr (assq 'xbm image-tests--images)))))
 
 (ert-deftest image-tests-imagemagick-types ()
   (skip-unless (fboundp 'imagemagick-types))