summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2022-05-01 01:19:51 +0300
committerBasil L. Contovounesios <contovob@tcd.ie>2022-05-01 01:19:51 +0300
commit02bf6650b073ffad702772a2ebae20023fa8276a (patch)
tree9bec4a338426f013b8db66283af47c92ce57aa7a
parent4ea8ab77e295fc508fc910e8278540ebcce293fb (diff)
downloademacs-02bf6650b073ffad702772a2ebae20023fa8276a.tar.gz
emacs-02bf6650b073ffad702772a2ebae20023fa8276a.tar.bz2
emacs-02bf6650b073ffad702772a2ebae20023fa8276a.zip
Fix failing image test on nox builds
* test/lisp/image-tests.el (image-supported-file-p/built-in): Skip test in --without-x builds.
-rw-r--r--test/lisp/image-tests.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el
index 908df09f15f..bc8c3636c3c 100644
--- a/test/lisp/image-tests.el
+++ b/test/lisp/image-tests.el
@@ -75,7 +75,8 @@
(should-not (find-image '((:type png :file "does-not-exist-foo-bar.png")))))
(ert-deftest image-supported-file-p/built-in ()
- ;; (skip-unless (image-type-available-p 'pbm)) ; always built-in
+ ;; (skip-unless (image-type-available-p 'pbm)) ; Always built-in
+ (skip-unless (display-images-p)) ; (except in nox builds).
(should (eq (image-supported-file-p "foo.pbm") 'pbm)))
(ert-deftest image-supported-file-p/optional ()