aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2024-09-23 18:30:00 +0300
committerEli Zaretskii2024-09-23 18:30:00 +0300
commite7260d4eb3ed1bebcaa9e2b934f162d4bb42e413 (patch)
treec4ce3eeea0921511546bff741c98b29244341340 /test
parent40e0257b1084b0243b5fcc972068fbce41fd9629 (diff)
downloademacs-e7260d4eb3ed1bebcaa9e2b934f162d4bb42e413.tar.gz
emacs-e7260d4eb3ed1bebcaa9e2b934f162d4bb42e413.zip
; Fix shr-tests when Emacs was built without libxml2
* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if libxml2 is not available. (Bug#73440)
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/shr-tests.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index f8559df5272..d0fe8031ed4 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -136,6 +136,7 @@ settings, then once more for each (OPTION . VALUE) pair.")
136(ert-deftest shr-test/zoom-image () 136(ert-deftest shr-test/zoom-image ()
137 "Test that `shr-zoom-image' properly replaces the original image." 137 "Test that `shr-zoom-image' properly replaces the original image."
138 (skip-unless (bound-and-true-p image-types)) 138 (skip-unless (bound-and-true-p image-types))
139 (skip-unless (libxml-available-p))
139 (let* ((image (expand-file-name "data/image/blank-100x200.png" 140 (let* ((image (expand-file-name "data/image/blank-100x200.png"
140 (getenv "EMACS_TEST_DIRECTORY"))) 141 (getenv "EMACS_TEST_DIRECTORY")))
141 (image-url (concat "file://" (if (string-prefix-p "/" image) 142 (image-url (concat "file://" (if (string-prefix-p "/" image)