aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Müller2025-02-21 09:58:16 +0100
committerUlrich Müller2025-02-21 12:58:20 +0100
commitcc51bd569874cd89a7fa1c3241033e69a5c2dd01 (patch)
tree228a2a6a2f49a910d96665029bce4f9fedc4331d
parent25ba2536091dea39c690169784fa9771296eefec (diff)
downloademacs-cc51bd569874cd89a7fa1c3241033e69a5c2dd01.tar.gz
emacs-cc51bd569874cd89a7fa1c3241033e69a5c2dd01.zip
; Skip image type test if support is missing
* test/lisp/image-tests.el (image-type-from-file-name): Skip if image types are not available. (Bug#76462)
-rw-r--r--test/lisp/image-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el
index 69557c83657..03d20758052 100644
--- a/test/lisp/image-tests.el
+++ b/test/lisp/image-tests.el
@@ -88,6 +88,9 @@
88 (should-not (image-supported-file-p "foo.some-unsupported-format"))) 88 (should-not (image-supported-file-p "foo.some-unsupported-format")))
89 89
90(ert-deftest image-type-from-file-name () 90(ert-deftest image-type-from-file-name ()
91 (skip-unless (and (image-type-available-p 'jpeg)
92 (image-type-available-p 'png)
93 (image-type-available-p 'webp)))
91 (with-suppressed-warnings ((obsolete image-type-from-file-name)) 94 (with-suppressed-warnings ((obsolete image-type-from-file-name))
92 (should (eq (image-type-from-file-name "foo.jpg") 'jpeg)) 95 (should (eq (image-type-from-file-name "foo.jpg") 'jpeg))
93 (should (eq (image-type-from-file-name "foo.png") 'png)) 96 (should (eq (image-type-from-file-name "foo.png") 'png))