GNU bug report logs - #76464
30.1; Test failure in shr-test/zoom-image

Previous Next

Package: emacs;

Reported by: Ulrich Müller <ulm <at> gentoo.org>

Date: Fri, 21 Feb 2025 09:59:02 UTC

Severity: normal

Fixed in version 30.1

Done: Ulrich Müller <ulm <at> gentoo.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76464 in the body.
You can then email your comments to 76464 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76464; Package emacs. (Fri, 21 Feb 2025 09:59:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Müller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Feb 2025 09:59:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Müller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.1; Test failure in shr-test/zoom-image
Date: Fri, 21 Feb 2025 10:57:52 +0100
In the 30.1-rc1 release candidate:

Running 4 tests (2025-02-21 10:31:51+0100, selector ‘(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))’)
   passed  1/4  rendering (0.011501 sec)
   passed  2/4  shr-srcset (0.000138 sec)
Test shr-test/zoom-image backtrace:
  signal(error ("Timed out waiting to zoom image"))
  error("Timed out waiting to zoom image")
  shr-test-wait-for(#f(compiled-function () #<bytecode 0x69f1ca74762a>) "Timed out waiting to zoom image")
  #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>)()
  #f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>)()
  handler-bind-1(#f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) (error quit) #f(compiled-function (err) #<bytecode -0x150ebb14c385d641>))
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test :name shr-test/zoom-image :documentation "Test that `shr-zoom-image' properly replaces the original image." :body #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :most-recent-result #s(ert-test-failed :messages "No image under point\n" :should-forms ((... :form ... :value ...)) :duration 5.131102459 :condition (error "Timed out waiting to zoom image") :backtrace (#s(backtrace-frame :evald t :fun signal :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun error :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun shr-test-wait-for :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :args nil :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :args #0 :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-test :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-or-rerun-test :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch-and-exit :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun eval :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line-1 :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun normal-top-level :args nil :flags nil :locals nil :buffer nil :pos nil)) :infos (("Info: " . "image with alt=nil"))) :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") :result #s(ert-test-failed :messages "No image under point\n" :should-forms (((skip-unless ...) :form (and ... image-types) :value (svg imagemagick gif tiff jpeg xpm xbm pbm))) :duration 5.131102459 :condition (error "Timed out waiting to zoom image") :backtrace (#s(backtrace-frame :evald t :fun signal :args (error ...) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun error :args ("Timed out waiting to zoom image") :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun shr-test-wait-for :args (#f(compiled-function () #<bytecode 0x69f1ca74762a>) "Timed out waiting to zoom image") :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :args nil :flags nil :locals (... ... ... ... ... ...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args (#f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) ... #f(compiled-function (err) #<bytecode -0x150ebb14c385d641>)) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :args #0 :flags nil :locals (... ...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-test :args (...) :flags nil :locals (... ... ...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-or-rerun-test :args (... ... #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>)) :flags nil :locals (...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args (... #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>) nil) :flags nil :locals (...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch :args (...) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch-and-exit :args (...) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun eval :args (... t) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line-1 :args (...) :flags nil :locals (... ...) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun normal-top-level :args nil :flags nil :locals nil :buffer nil :pos nil)) :infos (("Info: " . "image with alt=nil"))) :exit-continuation #f(compiled-function () #<bytecode 0x8d0c8642dff0c3>) :ert-debug-on-error nil))
  ert-run-test(#s(ert-test :name shr-test/zoom-image :documentation "Test that `shr-zoom-image' properly replaces the original image." :body #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :most-recent-result #s(ert-test-failed :messages "No image under point\n" :should-forms (((skip-unless (bound-and-true-p image-types)) :form (and (boundp ...) image-types) :value (svg imagemagick gif tiff jpeg xpm xbm pbm))) :duration 5.131102459 :condition (error "Timed out waiting to zoom image") :backtrace (#s(backtrace-frame :evald t :fun signal :args (error ("Timed out waiting to zoom image")) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun error :args ("Timed out waiting to zoom image") :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun shr-test-wait-for :args (#f(compiled-function () #<bytecode 0x69f1ca74762a>) "Timed out waiting to zoom image") :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :args nil :flags nil :locals ((ert--infos ...) (shr-put-image-function . #f(compiled-function (&rest args) #<bytecode 0x1aa42b554701fe89>)) (shr-width . 80) (shr-use-fonts) (shr-image-animate) (inhibit-message . t)) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args (#f(compiled-function () #<bytecode 0x14ed2e6ed9e260bb>) (error quit) #f(compiled-function (err) #<bytecode -0x150ebb14c385d641>)) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :args (#s(ert--test-execution-info :test #1 :result #2 :exit-continuation #f(compiled-function () #<bytecode 0x8d0c8642dff0c3>) :ert-debug-on-error nil)) :flags nil :locals ((ert--infos) (lexical-binding . t)) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-test :args #0 :flags nil :locals ((ert--running-tests #1) (message-log-max . t) (ert--should-execution-observer . #f(compiled-function (form-description) #<bytecode -0x1ddeb65f144f4091>))) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-or-rerun-test :args (#s(ert--stats :selector ... :tests ... :test-map #<hash-table eql 4/4 0x10ebb532c32a ...> :test-results ... :test-start-times ... :test-end-times ... :passed-expected 2 :passed-unexpected 0 :failed-expected 0 :failed-unexpected 1 :skipped 0 :start-time ... :end-time nil :aborted-p nil :current-test #1 :next-redisplay 0.0) #1 #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>)) :flags nil :locals ((ert--current-run-stats . ...)) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args ((not ...) #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>) nil) :flags nil :locals ((ert--current-run-stats . ...)) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch :args ((not ...)) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch-and-exit :args ((not ...)) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun eval :args ((ert-run-tests-batch-and-exit ...) t) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line-1 :args (("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-load-path '(\"/tmp/portage/app-editors/emacs-30.1_rc1/homedir/.emacs.d/tree-sitter\"))" "--eval" "(setq ert-batch-backtrace-right-margin nil)" "-l" "lisp/net/shr-tests" "--eval" "(ert-run-tests-batch-and-exit (quote (not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))))")) :flags nil :locals ((command-line-args-left) (argi . "-eval")) :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun normal-top-level :args nil :flags nil :locals nil :buffer nil :pos nil)) :infos (("Info: " . "image with alt=nil"))) :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el"))
  ert-run-or-rerun-test(#s(ert--stats :selector (not (or ... ... ...)) :tests [#s(ert-test :name rendering :documentation nil :body #f(compiled-function () #<bytecode 0x1f49d0769f543c4b>) :most-recent-result ... :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") #s(ert-test :name shr-srcset :documentation nil :body #f(compiled-function () #<bytecode -0x14f2476ca18b144b>) :most-recent-result ... :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") #s(ert-test :name shr-test/zoom-image :documentation "Test that `shr-zoom-image' properly replaces the original image." :body #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :most-recent-result ... :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") #s(ert-test :name use-cookies :documentation nil :body #f(compiled-function () #<bytecode 0x41dcf774df43ea3>) :most-recent-result nil :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el")] :test-map #<hash-table eql 4/4 0x10ebb532c32a ...> :test-results [#s(ert-test-passed :messages "" :should-forms ... :duration 0.011501395) #s(ert-test-passed :messages "" :should-forms ... :duration 0.00013758) #s(ert-test-failed :messages "No image under point\n" :should-forms ... :duration 5.131102459 :condition ... :backtrace ... :infos ...) nil] :test-start-times [(26552 18439 720835 414000) (26552 18439 732389 839000) (26552 18439 732563 106000) nil] :test-end-times [(26552 18439 732336 809000) (26552 18439 732527 419000) (26552 18444 863665 565000) nil] :passed-expected 2 :passed-unexpected 0 :failed-expected 0 :failed-unexpected 1 :skipped 0 :start-time (26552 18439 720765 993000) :end-time nil :aborted-p nil :current-test #s(ert-test :name shr-test/zoom-image :documentation "Test that `shr-zoom-image' properly replaces the original image." :body #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :most-recent-result #s(ert-test-failed :messages "No image under point\n" :should-forms ... :duration 5.131102459 :condition ... :backtrace ... :infos ...) :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") :next-redisplay 0.0) #s(ert-test :name shr-test/zoom-image :documentation "Test that `shr-zoom-image' properly replaces the original image." :body #f(compiled-function () #<bytecode 0x1bb70f4a3c82e1e7>) :most-recent-result #s(ert-test-failed :messages "No image under point\n" :should-forms (...) :duration 5.131102459 :condition (error "Timed out waiting to zoom image") :backtrace (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :infos (...)) :expected-result-type :passed :tags nil :file-name "/tmp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/net/shr-tests.el") #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>))
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp))) #f(compiled-function (event-type &rest event-args) #<bytecode -0x1ce76ce16f27d548>) nil)
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp))))
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))) t)
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-load-path '(\"/tmp/portage/app-editors/emacs-30.1_rc1/homedir/.emacs.d/tree-sitter\"))" "--eval" "(setq ert-batch-backtrace-right-margin nil)" "-l" "lisp/net/shr-tests" "--eval" "(ert-run-tests-batch-and-exit (quote (not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))))"))
  command-line()
  normal-top-level()

Test shr-test/zoom-image condition:
    Info: image with alt=nil
    (error "Timed out waiting to zoom image")
   FAILED  3/4  shr-test/zoom-image (5.131102 sec) at lisp/net/shr-tests.el:136
   passed  4/4  use-cookies (0.024167 sec)

Ran 4 tests, 3 results as expected, 1 unexpected (2025-02-21 10:31:56+0100, 5.265277 sec)

1 unexpected results:
   FAILED  shr-test/zoom-image  "Timed out waiting to zoom image"


This is triggered by the --without-png configure option.


In GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.2) of 2025-02-21 built on urania
Windowing system distributor 'The X.Org Foundation', version 11.0.12101015
System Description: Gentoo Linux

Configured using:
 'configure --prefix=/usr --build=x86_64-pc-linux-gnu
 --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
 --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
 --localstatedir=/var/lib --datarootdir=/usr/share
 --disable-silent-rules --docdir=/usr/share/doc/emacs-30.1_rc1
 --htmldir=/usr/share/doc/emacs-30.1_rc1/html --libdir=/usr/lib64
 --program-suffix=-emacs-30 --includedir=/usr/include/emacs-30
 --infodir=/usr/share/info/emacs-30 --localstatedir=/var
 --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=inotify --with-pdumper --enable-acl
 --enable-xattr --with-dbus --with-modules --with-gameuser=:gamestat
 --with-libgmp --with-gpm --without-native-compilation
 --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2
 --without-mailutils --without-selinux --without-sqlite3 --with-gnutls
 --without-libsystemd --with-threads --without-tree-sitter
 --without-wide-int --with-sound=alsa --with-zlib --with-x
 --without-pgtk --without-ns --without-gconf --with-gsettings
 --without-toolkit-scroll-bars --with-xpm --with-xft --with-cairo
 --with-harfbuzz --with-libotf --with-m17n-flt --with-x-toolkit=lucid
 --with-xaw3d --with-gif --with-jpeg --without-png --with-rsvg
 --with-tiff --without-webp --with-imagemagick --with-dumping=pdumper
 'CFLAGS=-march=native -ggdb -O2 -pipe -fno-fast-math -ffp-contract=off'
 CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed
 -Wl,-z,pack-relative-relocs''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER RSVG SECCOMP SOUND THREADS TIFF X11 XAW3D XDBE XIM XINPUT2 XPM
LUCID ZLIB

Important settings:
  value of $LC_CTYPE: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: POSIX
  locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76464; Package emacs. (Fri, 21 Feb 2025 10:07:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Müller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.1; Test failure in shr-test/zoom-image
Date: Fri, 21 Feb 2025 11:06:20 +0100
[Message part 1 (text/plain, inline)]
Attached patch fixes the problem for me.

[0001-Skip-shr-test-zoom-image-test-if-png-support-is-miss.patch (text/plain, inline)]
From 423a247e608c485a685f7163088d65d246ed25ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
Date: Fri, 21 Feb 2025 10:36:52 +0100
Subject: [PATCH] ; Skip shr-test/zoom-image test if png support is missing

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if png
images are not supported.  (Bug#76464)
---
 test/lisp/net/shr-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index beb9bfe85a9..402e49c8400 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -135,7 +135,8 @@ shr-srcset
 
 (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 (and (bound-and-true-p image-types)
+                    (image-type-available-p 'png)))
   (let* ((image (expand-file-name "data/image/blank-100x200.png"
                                   (getenv "EMACS_TEST_DIRECTORY")))
          (image-url (concat "file://" (if (string-prefix-p "/" image)
-- 
2.48.1


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76464; Package emacs. (Fri, 21 Feb 2025 10:37:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Müller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 30.1; Test failure in shr-test/zoom-image
Date: Fri, 21 Feb 2025 11:36:06 +0100
[Message part 1 (text/plain, inline)]
It turns out that the bug also happens when Emacs is configured with the
--without-xml2 option, so the test must be skipped in that case too.

Updated patch attached.

[0001-Skip-shr-test-zoom-image-test-if-png-or-libxml-suppo.patch (text/plain, inline)]
From 7a12c2c2e54d2714d92f5823023480710b1384d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
Date: Fri, 21 Feb 2025 10:36:52 +0100
Subject: [PATCH] ; Skip shr-test/zoom-image test if png or libxml support is
 missing

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if png
images or libxml are not supported.  (Bug#76464)
---
 test/lisp/net/shr-tests.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index beb9bfe85a9..8d66684c96d 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -135,7 +135,9 @@ shr-srcset
 
 (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 (and (bound-and-true-p image-types)
+                    (image-type-available-p 'png)
+                    (fboundp 'libxml-parse-html-region)))
   (let* ((image (expand-file-name "data/image/blank-100x200.png"
                                   (getenv "EMACS_TEST_DIRECTORY")))
          (image-url (concat "file://" (if (string-prefix-p "/" image)
-- 
2.48.1


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76464; Package emacs. (Fri, 21 Feb 2025 11:51:02 GMT) Full text and rfc822 format available.

Message #14 received at 76464 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Müller <ulm <at> gentoo.org>
Cc: 76464 <at> debbugs.gnu.org
Subject: Re: bug#76464: 30.1; Test failure in shr-test/zoom-image
Date: Fri, 21 Feb 2025 13:50:39 +0200
> From: Ulrich Müller <ulm <at> gentoo.org>
> Date: Fri, 21 Feb 2025 11:36:06 +0100
> 
> It turns out that the bug also happens when Emacs is configured with the
> --without-xml2 option, so the test must be skipped in that case too.
> 
> Updated patch attached.

Thanks, please install on the emacs-30 release branch.




bug marked as fixed in version 30.1, send any further explanations to 76464 <at> debbugs.gnu.org and Ulrich Müller <ulm <at> gentoo.org> Request was from Ulrich Müller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 21 Feb 2025 12:02:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 22 Mar 2025 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.