Subject: 30.1; Test failure in shr-test/zoom-image

From: Ulrich Müller <[email-masked]>
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