]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix failing image test on nox builds
authorBasil L. Contovounesios <contovob@tcd.ie>
Sat, 30 Apr 2022 22:19:51 +0000 (01:19 +0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sat, 30 Apr 2022 22:19:51 +0000 (01:19 +0300)
* test/lisp/image-tests.el (image-supported-file-p/built-in): Skip
test in --without-x builds.

test/lisp/image-tests.el

index 908df09f15ffbb4978c6f45b3bc22460d002761a..bc8c3636c3c52421f6bc1b0c81fac35d4765fb9c 100644 (file)
@@ -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 ()