GNU bug report logs - #76465
30.1; Test failure in image-supported-file-p/optional

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ulrich Müller <ulm@HIDDEN>; Done: Ulrich Müller <ulm@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 30.1, send any further explanations to 76465 <at> debbugs.gnu.org and Ulrich Müller <ulm@HIDDEN> Request was from Ulrich Müller <ulm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76465 <at> debbugs.gnu.org:


Received: (at 76465) by debbugs.gnu.org; 21 Feb 2025 12:15:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 07:15:42 2025
Received: from localhost ([127.0.0.1]:55964 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlRwT-000180-3l
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 07:15:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44552)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tlRwQ-0000wI-MY
 for 76465 <at> debbugs.gnu.org; Fri, 21 Feb 2025 07:15:39 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tlRwL-000624-Au; Fri, 21 Feb 2025 07:15:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=nBnwZA/NDWQzs8n23SmGSUIQVahh4KTEyhDqB5y4BM0=; b=Dm+FTxqv/kPHj7ouZxMV
 YGjggH26hRJTYXqAFCXpZrcMrfps+xfpCD9tizKJn3oF1IN+QSCS5GQAlBZSbsquAFvcT5cQ/4Hzk
 ynKpS82tGjCHfevXiN2vRTIyubeDBpK/YuAgVbY1ITZAlwd+ZQ7yKGJ0o+mP6D4BfkYXdZWEX24cO
 gHZHP3xbZNNvXdPvTAWKD+jxysf/OM//uJ6SNnevqiM3m8BTEsNbsNONg+Xv/g8RNVeHG1iN9QuQg
 8bH80w0YCpTUbnAoVQdfSlNaeTNysIj+tZaJHtPiRwxqRCWrblj6/N0Vdh1XE7KITU1c7gWA0IcAv
 SIrh1kmgmqPpZA==;
Date: Fri, 21 Feb 2025 14:15:30 +0200
Message-Id: <8634g71okd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Ulrich =?iso-8859-1?Q?M=FCller?= <ulm@HIDDEN>
In-Reply-To: <ubjuvilwt@HIDDEN> (message from Ulrich =?iso-8859-1?Q?M?=
 =?iso-8859-1?Q?=FCller?= on Fri, 21 Feb 2025 12:20:50 +0100)
Subject: Re: bug#76465: 30.1; Test failure in image-supported-file-p/optional
References: <uikp3imu7@HIDDEN> <ubjuvilwt@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76465
Cc: 76465 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Ulrich Müller <ulm@HIDDEN>
> Date: Fri, 21 Feb 2025 12:20:50 +0100
> 
> Attached patch fixes the problem for me.

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76465; Package emacs. Full text available.

Message received at 76465 <at> debbugs.gnu.org:


Received: (at 76465) by debbugs.gnu.org; 21 Feb 2025 11:21:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 06:21:05 2025
Received: from localhost ([127.0.0.1]:55105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlR5b-0005x4-V8
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 06:21:04 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:54534
 helo=smtp.gentoo.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1tlR5Y-0005vD-Uw
 for 76465 <at> debbugs.gnu.org; Fri, 21 Feb 2025 06:21:01 -0500
Received: from urania (unknown [IPv6:2001:4c80:40:539:b877:565f:7e2f:2761])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits)
 server-digest SHA256) (No client certificate requested)
 (Authenticated sender: ulm)
 by smtp.gentoo.org (Postfix) with ESMTPSA id D52AF34306A;
 Fri, 21 Feb 2025 11:20:53 +0000 (UTC)
From: =?utf-8?Q?Ulrich_M=C3=BCller?= <ulm@HIDDEN>
To: 76465 <at> debbugs.gnu.org
Subject: Re: 30.1; Test failure in image-supported-file-p/optional
In-Reply-To: <uikp3imu7@HIDDEN> ("Ulrich =?utf-8?Q?M=C3=BCller=22's?=
 message of "Fri, 21 Feb 2025 12:00:48 +0100")
References: <uikp3imu7@HIDDEN>
Date: Fri, 21 Feb 2025 12:20:50 +0100
Message-ID: <ubjuvilwt@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76465
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Attached patch fixes the problem for me.


--=-=-=
Content-Type: text/plain
Content-Disposition: inline;
 filename=0001-Don-t-fail-image-tests-if-jpeg-is-supported-via-imag.patch

From f5b89a94c7af3bb89fcd72214de5c09f13c47d75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@HIDDEN>
Date: Fri, 21 Feb 2025 12:13:20 +0100
Subject: [PATCH] ; Don't fail image tests if jpeg is supported via imagemagick

* test/lisp/image-tests.el (image-supported-file-p/optional):
Consider also the imagemagick case.  (Bug#76465)
---
 test/lisp/image-tests.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el
index 03d20758052..455118cb98c 100644
--- a/test/lisp/image-tests.el
+++ b/test/lisp/image-tests.el
@@ -80,9 +80,12 @@ image-supported-file-p/built-in
   (should (eq (image-supported-file-p "foo.pbm") 'pbm)))
 
 (ert-deftest image-supported-file-p/optional ()
-  (if (image-type-available-p 'jpeg)
-      (should (eq (image-supported-file-p "foo.jpg") 'jpeg))
-    (should-not (image-supported-file-p "foo.jpg"))))
+  (cond ((image-type-available-p 'jpeg)
+         (should (eq (image-supported-file-p "foo.jpg") 'jpeg)))
+        ((fboundp 'imagemagick-types)
+         (should (eq (image-supported-file-p "foo.jpg") 'imagemagick)))
+        (nil
+         (should-not (image-supported-file-p "foo.jpg")))))
 
 (ert-deftest image-supported-file-p/unsupported-returns-nil ()
   (should-not (image-supported-file-p "foo.some-unsupported-format")))
-- 
2.48.1


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76465; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Feb 2025 11:01:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 06:01:16 2025
Received: from localhost ([127.0.0.1]:54794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlQmP-0002ts-GH
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 06:01:16 -0500
Received: from lists.gnu.org ([2001:470:142::17]:34916)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1tlQmK-0002sU-Ep
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2025 06:01:11 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ulm@HIDDEN>) id 1tlQmE-0007vp-W4
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2025 06:01:03 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <ulm@HIDDEN>) id 1tlQm8-00047I-Ad
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2025 06:01:00 -0500
Received: from urania (unknown [IPv6:2001:4c80:40:539:b877:565f:7e2f:2761])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits)
 server-digest SHA256) (No client certificate requested)
 (Authenticated sender: ulm)
 by smtp.gentoo.org (Postfix) with ESMTPSA id 1C73F3430CE;
 Fri, 21 Feb 2025 11:00:51 +0000 (UTC)
From: =?utf-8?Q?Ulrich_M=C3=BCller?= <ulm@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.1; Test failure in image-supported-file-p/optional
Date: Fri, 21 Feb 2025 12:00:48 +0100
Message-ID: <uikp3imu7@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@HIDDEN;
 helo=smtp.gentoo.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Yet another test failure in the 30.1-rc1 release candidate.


Running 20 tests (2025-02-21 11:53:43+0100, selector =E2=80=98(not (or (tag=
 :expensive-test) (tag :unstable) (tag :nativecomp)))=E2=80=99)
  skipped   1/20  image--compute-map-and-original-map (0.000149 sec)
   passed   2/20  image--set-property (0.000078 sec)
  skipped   3/20  image-create-image-with-map (0.000092 sec)
   passed   4/20  image-find-image (0.005288 sec)
Use +, -, r for further adjustments
Use +, -, r for further adjustments
Use +, -, r for further adjustments
Use +, -, r for further adjustments
Use +, -, r for further adjustments
Use +, -, r for further adjustments
Use +, -, r for further adjustments
   passed   5/20  image-rotate (0.001056 sec)
  skipped   6/20  image-supported-file-p/built-in (0.000100 sec)
Test image-supported-file-p/optional backtrace:
  signal(ert-test-failed (((should-not (image-supported-file-p "foo.jpg")) =
:form (image-supported-file-p "foo.jpg") :value imagemagick)))
  ert-fail(((should-not (image-supported-file-p "foo.jpg")) :form (image-su=
pported-file-p "foo.jpg") :value imagemagick))
  #f(compiled-function () #<bytecode 0xf3e0efa6ef7d4d8>)()
  #f(compiled-function () #<bytecode -0x89eca9a47261aa5>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x89eca9a47261aa5>) (e=
rror quit) #f(compiled-function (err) #<bytecode -0x1579e396ec51e341>))
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test :nam=
e image-supported-file-p/optional :documentation nil :body #f(compiled-func=
tion () #<bytecode 0xf3e0efa6ef7d4d8>) :most-recent-result #s(ert-test-fail=
ed :messages "" :should-forms ((... :form ... :value imagemagick)) :duratio=
n 0.000113023 :condition (ert-test-failed (... :form ... :value imagemagick=
)) :backtrace (#s(backtrace-frame :evald t :fun signal :args ... :flags nil=
 :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-fai=
l :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame=
 :evald t :fun #f(compiled-function () #<bytecode 0xf3e0efa6ef7d4d8>) :args=
 nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald=
 t :fun #f(compiled-function () #<bytecode -0x89eca9a47261aa5>) :args nil :=
flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fu=
n 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 :l=
ocals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-te=
st :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-fram=
e :evald t :fun ert-run-or-rerun-test :args ... :flags nil :locals ... :buf=
fer 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 :f=
un ert-run-tests-batch :args ... :flags nil :locals nil :buffer nil :pos ni=
l) #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 :f=
un eval :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace=
-frame :evald t :fun command-line-1 :args ... :flags nil :locals ... :buffe=
r nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :fl=
ags 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)) :i=
nfos nil) :expected-result-type :passed :tags nil :file-name "/tmp/portage/=
app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/image-tests.el") :resu=
lt #s(ert-test-failed :messages "" :should-forms (((should-not ...) :form (=
image-supported-file-p "foo.jpg") :value imagemagick)) :duration 0.00011302=
3 :condition (ert-test-failed ((should-not ...) :form (image-supported-file=
-p "foo.jpg") :value imagemagick)) :backtrace (#s(backtrace-frame :evald t =
:fun signal :args (ert-test-failed ...) :flags nil :locals nil :buffer nil =
:pos nil) #s(backtrace-frame :evald t :fun ert-fail :args (...) :flags nil =
:locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compi=
led-function () #<bytecode 0xf3e0efa6ef7d4d8>) :args nil :flags nil :locals=
 nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-fun=
ction () #<bytecode -0x89eca9a47261aa5>) :args nil :flags nil :locals nil :=
buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args =
(#f(compiled-function () #<bytecode -0x89eca9a47261aa5>) ... #f(compiled-fu=
nction (err) #<bytecode -0x1579e396ec51e341>)) :flags nil :locals nil :buff=
er nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :a=
rgs #0 :flags nil :locals (... ...) :buffer nil :pos nil) #s(backtrace-fram=
e :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) #<byteco=
de -0x1cc6ab1dfc4a8548>)) :flags nil :locals (...) :buffer nil :pos nil) #s=
(backtrace-frame :evald t :fun ert-run-tests :args (... #f(compiled-functio=
n (event-type &rest event-args) #<bytecode -0x1cc6ab1dfc4a8548>) nil) :flag=
s 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(back=
trace-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 nil) :exit-continuation #f(compiled-function () #<bytecod=
e 0x8d7a958437a5c3>) :ert-debug-on-error nil))
  ert-run-test(#s(ert-test :name image-supported-file-p/optional :documenta=
tion nil :body #f(compiled-function () #<bytecode 0xf3e0efa6ef7d4d8>) :most=
-recent-result #s(ert-test-failed :messages "" :should-forms (((should-not =
(image-supported-file-p "foo.jpg")) :form (image-supported-file-p "foo.jpg"=
) :value imagemagick)) :duration 0.000113023 :condition (ert-test-failed ((=
should-not (image-supported-file-p "foo.jpg")) :form (image-supported-file-=
p "foo.jpg") :value imagemagick)) :backtrace (#s(backtrace-frame :evald t :=
fun signal :args (ert-test-failed ((... :form ... :value imagemagick))) :fl=
ags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun =
ert-fail :args (((should-not ...) :form (image-supported-file-p "foo.jpg") =
:value imagemagick)) :flags nil :locals nil :buffer nil :pos nil) #s(backtr=
ace-frame :evald t :fun #f(compiled-function () #<bytecode 0xf3e0efa6ef7d4d=
8>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-fra=
me :evald t :fun #f(compiled-function () #<bytecode -0x89eca9a47261aa5>) :a=
rgs nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :ev=
ald t :fun handler-bind-1 :args (#f(compiled-function () #<bytecode -0x89ec=
a9a47261aa5>) (error quit) #f(compiled-function (err) #<bytecode -0x1579e39=
6ec51e341>)) :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-fram=
e :evald t :fun ert--run-test-internal :args (#s(ert--test-execution-info :=
test #1 :result #2 :exit-continuation #f(compiled-function () #<bytecode 0x=
8d7a958437a5c3>) :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) (mess=
age-log-max . t) (ert--should-execution-observer . #f(compiled-function (fo=
rm-description) #<bytecode -0x1ddeb65f144f4091>))) :buffer nil :pos nil) #s=
(backtrace-frame :evald t :fun ert-run-or-rerun-test :args (#s(ert--stats :=
selector (not ...) :tests [... ... ... ... ... ... #1 ... ... ... ... ... .=
.. ... ... ... ... ... ... ...] :test-map #<hash-table eql 20/20 0x10ed2ec6=
96bb ...> :test-results [... ... ... ... ... ... #2 nil nil nil nil nil nil=
 nil nil nil nil nil nil nil] :test-start-times [... ... ... ... ... ... ..=
. nil nil nil nil nil nil nil nil nil nil nil nil nil] :test-end-times [...=
 ... ... ... ... ... ... nil nil nil nil nil nil nil nil nil nil nil nil ni=
l] :passed-expected 3 :passed-unexpected 0 :failed-expected 0 :failed-unexp=
ected 1 :skipped 3 :start-time (26552 23351 685490 426000) :end-time nil :a=
borted-p nil :current-test #1 :next-redisplay 0.0) #1 #f(compiled-function =
(event-type &rest event-args) #<bytecode -0x1cc6ab1dfc4a8548>)) :flags nil =
:locals ((ert--current-run-stats . #s(ert--stats :selector ... :tests ... :=
test-map #<hash-table eql 20/20 0x10ed2ec696bb ...> :test-results ... :test=
-start-times ... :test-end-times ... :passed-expected 3 :passed-unexpected =
0 :failed-expected 0 :failed-unexpected 1 :skipped 3 :start-time ... :end-t=
ime nil :aborted-p nil :current-test #1 :next-redisplay 0.0))) :buffer nil =
:pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args ((not (or ..=
. ... ...)) #f(compiled-function (event-type &rest event-args) #<bytecode -=
0x1cc6ab1dfc4a8548>) nil) :flags nil :locals ((ert--current-run-stats . #s(=
ert--stats :selector ... :tests ... :test-map #<hash-table eql 20/20 0x10ed=
2ec696bb ...> :test-results ... :test-start-times ... :test-end-times ... :=
passed-expected 3 :passed-unexpected 0 :failed-expected 0 :failed-unexpecte=
d 1 :skipped 3 :start-time ... :end-time nil :aborted-p nil :current-test #=
1 :next-redisplay 0.0))) :buffer nil :pos nil) #s(backtrace-frame :evald t =
:fun ert-run-tests-batch :args ((not (or ... ... ...))) :flags nil :locals =
nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-ba=
tch-and-exit :args ((not (or ... ... ...))) :flags nil :locals nil :buffer =
nil :pos nil) #s(backtrace-frame :evald t :fun eval :args ((ert-run-tests-b=
atch-and-exit '...) t) :flags nil :locals nil :buffer nil :pos nil) #s(back=
trace-frame :evald t :fun command-line-1 :args (("-L" ":." "-l" "ert" "--ev=
al" "(setq treesit-extra-load-path '(\"/tmp/portage/app-editors/emacs-30.1_=
rc1/homedir/.emacs.d/tree-sitter\"))" "--eval" "(setq ert-batch-backtrace-r=
ight-margin nil)" "-l" "lisp/image-tests" "--eval" "(ert-run-tests-batch-an=
d-exit (quote (not (or (tag :expensive-test) (tag :unstable) (tag :nativeco=
mp)))))")) :flags nil :locals ((command-line-args-left) (argi . "-eval")) :=
buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args ni=
l :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 nil) :expected-result-type :passed :tags nil :file-name "/tmp/por=
tage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/image-tests.el"))
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-map #<=
hash-table eql 20/20 0x10ed2ec696bb ...> :test-results ... :test-start-time=
s ... :test-end-times ... :passed-expected 3 :passed-unexpected 0 :failed-e=
xpected 0 :failed-unexpected 1 :skipped 3 :start-time ... :end-time nil :ab=
orted-p nil ...) #s(ert-test :name image-supported-file-p/optional :documen=
tation nil :body #f(compiled-function () #<bytecode 0xf3e0efa6ef7d4d8>) :mo=
st-recent-result ... :expected-result-type :passed :tags nil :file-name "/t=
mp/portage/app-editors/emacs-30.1_rc1/work/emacs-30.1/test/lisp/image-tests=
.el") #f(compiled-function (event-type &rest event-args) #<bytecode -0x1cc6=
ab1dfc4a8548>))
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :native=
comp))) #f(compiled-function (event-type &rest event-args) #<bytecode -0x1c=
c6ab1dfc4a8548>) 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 :unstabl=
e) (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-p=
ath '(\"/tmp/portage/app-editors/emacs-30.1_rc1/homedir/.emacs.d/tree-sitte=
r\"))" "--eval" "(setq ert-batch-backtrace-right-margin nil)" "-l" "lisp/im=
age-tests" "--eval" "(ert-run-tests-batch-and-exit (quote (not (or (tag :ex=
pensive-test) (tag :unstable) (tag :nativecomp)))))"))
  command-line()
  normal-top-level()

Test image-supported-file-p/optional condition:
    (ert-test-failed
     ((should-not (image-supported-file-p "foo.jpg")) :form
      (image-supported-file-p "foo.jpg") :value imagemagick))
   FAILED   7/20  image-supported-file-p/optional (0.000113 sec) at lisp/im=
age-tests.el:82
   passed   8/20  image-supported-file-p/unsupported-returns-nil (0.000083 =
sec)
   passed   9/20  image-transform-map (0.000104 sec)
   passed  10/20  image-type-from-file-header-test/gif (0.000320 sec)
   passed  11/20  image-type-from-file-header-test/jpeg (0.000300 sec)
   passed  12/20  image-type-from-file-header-test/pbm (0.000296 sec)
   passed  13/20  image-type-from-file-header-test/png (0.000284 sec)
   passed  14/20  image-type-from-file-header-test/svg (0.000498 sec)
   passed  15/20  image-type-from-file-header-test/tiff (0.000324 sec)
   passed  16/20  image-type-from-file-header-test/webp (0.000292 sec)
   passed  17/20  image-type-from-file-header-test/xbm (0.000290 sec)
   passed  18/20  image-type-from-file-header-test/xpm (0.000301 sec)
  skipped  19/20  image-type-from-file-name (0.000064 sec)
  skipped  20/20  image-type/from-filename (0.000054 sec)

Ran 20 tests, 14 results as expected, 1 unexpected, 5 skipped (2025-02-21 1=
1:53:43+0100, 0.126387 sec)

1 unexpected results:
   FAILED  image-supported-file-p/optional  ((should-not (image-supported-f=
ile-p "foo.jpg")) :form (image-supported-file-p "foo.jpg") :value imagemagi=
ck)

5 skipped results:
  SKIPPED  image--compute-map-and-original-map  ((skip-unless (display-imag=
es-p)) :form (display-images-p) :value nil)
  SKIPPED  image-create-image-with-map  ((skip-unless (display-images-p)) :=
form (display-images-p) :value nil)
  SKIPPED  image-supported-file-p/built-in  ((skip-unless (display-images-p=
)) :form (display-images-p) :value nil)
  SKIPPED  image-type-from-file-name  ((skip-unless (and (image-type-availa=
ble-p 'jpeg) (image-type-available-p 'png) (image-type-available-p 'webp)))=
 :form (and (image-type-available-p 'jpeg) (image-type-available-p 'png) (i=
mage-type-available-p 'webp)) :value nil)
  SKIPPED  image-type/from-filename  ((skip-unless (and (bound-and-true-p i=
mage-types) (bound-and-true-p image-load-path) (image-type-available-p 'jpe=
g))) :form (and (and (boundp 'image-types) image-types) (and (boundp 'image=
-load-path) image-load-path) (image-type-available-p 'jpeg)) :value nil)


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=3D/usr --build=3Dx86_64-pc-linux-gnu
 --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man
 --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc
 --localstatedir=3D/var/lib --datarootdir=3D/usr/share
 --disable-silent-rules --docdir=3D/usr/share/doc/emacs-30.1_rc1
 --htmldir=3D/usr/share/doc/emacs-30.1_rc1/html --libdir=3D/usr/lib64
 --program-suffix=3D-emacs-30 --includedir=3D/usr/include/emacs-30
 --infodir=3D/usr/share/info/emacs-30 --localstatedir=3D/var
 --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=3Dinotify --with-pdumper --enable-acl
 --enable-xattr --with-dbus --with-modules --with-gameuser=3D: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=3Dalsa --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=3Dlucid
 --with-xaw3d --with-gif --without-jpeg --with-png --with-rsvg
 --with-tiff --without-webp --with-imagemagick --with-dumping=3Dpdumper
 'CFLAGS=3D-march=3Dnative -ggdb -O2 -pipe -fno-fast-math -ffp-contract=3Do=
ff'
 CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed
 -Wl,-z,pack-relative-relocs''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER
PNG 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




Acknowledgement sent to Ulrich Müller <ulm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76465; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 21 Feb 2025 12:30:03 UTC

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