From 892e6f114dd895630b850d5546fa1a907be04149 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 23 Sep 2024 18:30:00 +0300 Subject: [PATCH] ; 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) (cherry picked from commit e7260d4eb3ed1bebcaa9e2b934f162d4bb42e413) --- test/lisp/net/shr-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el index 1980a437b9b..d0fe8031ed4 100644 --- a/test/lisp/net/shr-tests.el +++ b/test/lisp/net/shr-tests.el @@ -136,7 +136,7 @@ settings, then once more for each (OPTION . VALUE) pair.") (ert-deftest shr-test/zoom-image () "Test that `shr-zoom-image' properly replaces the original image." (skip-unless (bound-and-true-p image-types)) - (skip-unless (fboundp 'libxml-parse-html-region)) + (skip-unless (libxml-available-p)) (let* ((image (expand-file-name "data/image/blank-100x200.png" (getenv "EMACS_TEST_DIRECTORY"))) (image-url (concat "file://" (if (string-prefix-p "/" image) -- 2.39.2