From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich =?UTF-8?Q?M=C3=BCller?= Newsgroups: gmane.emacs.bugs Subject: bug#71749: 29.4; Test failure in flymake-tests.el with GCC 14.1.1 Date: Mon, 24 Jun 2024 15:33:00 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18114"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71749@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 15:34:16 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLjpo-0004bC-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 15:34:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLjpb-0006qN-Hc; Mon, 24 Jun 2024 09:34:03 -0400 Original-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 ) id 1sLjpZ-0006qE-Tu for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 09:34:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLjpZ-0001EQ-LL for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 09:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLjpa-00040x-HM for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 09:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich =?UTF-8?Q?M=C3=BCller?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2024 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71749 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171923599915342 (code B ref -1); Mon, 24 Jun 2024 13:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2024 13:33:19 +0000 Original-Received: from localhost ([127.0.0.1]:58054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLjot-0003zM-7n for submit@debbugs.gnu.org; Mon, 24 Jun 2024 09:33:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLjoq-0003z8-Ck for submit@debbugs.gnu.org; Mon, 24 Jun 2024 09:33:18 -0400 Original-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 ) id 1sLjop-0006gT-2a for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 09:33:15 -0400 Original-Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sLjoj-000196-1z for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 09:33:14 -0400 Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287841 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Emacs 29.4 fails tests with GCC 14.1.1 (Gentoo package sys-devel/gcc-14.1.1_p20240518): HOME=3D/nonexistent LANG=3DC EMACS_TEST_DIRECTORY=3D/tmp/portage/app-editor= s/emacs-29.4/work/emacs-29.4/test "../src/emacs" --module-assertions --no= -init-file --no-site-file --no-site-lisp -L ":." \ -l ert --eval '(setq ert-batch-backtrace-right-margin nil)' -l src/emacs-= module-tests \ --batch --eval '(ert-run-tests-batch-and-exit (quote (not (or (tag :expen= sive-test) (tag :unstable) (tag :nativecomp)))))' > src/emacs-module-tests.= log 2>&1 || { STAT=3D$?; cat src/emacs-module-tests.log; exit $STAT; } Running 9 tests (2024-06-24 15:21:29+0200, selector =E2=80=98(not (or (tag = :expensive-test) (tag :unstable) (tag :nativecomp)))=E2=80=99) passed 1/9 different-diagnostic-types (1.294288 sec) passed 2/9 dummy-backends (1.002899 sec) passed 3/9 eob-region-and-trailing-newline (0.000172 sec) Test included-c-header-files backtrace: [... backtrace omitted ...] Test included-c-header-files condition: (ert-test-failed ((should (eq 'flymake-warning (face-at-point))) :form (eq flymake-warning flymake-error) :value nil)) FAILED 4/9 included-c-header-files (1.067014 sec) at lisp/progmodes/fl= ymake-tests.el:168 passed 5/9 perl-backend (1.025399 sec) passed 6/9 recurrent-backend (1.003033 sec) passed 7/9 ruby-backend (1.019991 sec) passed 8/9 warning-predicate-function-gcc (1.020760 sec) passed 9/9 warning-predicate-rx-gcc (1.021962 sec) Ran 9 tests, 8 results as expected, 1 unexpected (2024-06-24 15:21:38+0200,= 8.529267 sec) 1 unexpected results: FAILED included-c-header-files ((should (eq 'flymake-warning (face-at-= point))) :form (eq flymake-warning flymake-error) :value nil) make[3]: *** [Makefile:180: lisp/progmodes/flymake-tests.log] Error 1 make[3]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-= 29.4/test' make[2]: [Makefile:340: check-doit] Error 2 (ignored) SUMMARY OF TEST RESULTS ----------------------- Files examined: 466 Ran 6977 tests, 6757 results as expected, 1 unexpected, 219 skipped 1 files contained unexpected results: lisp/progmodes/flymake-tests.log make[2]: *** [Makefile:341: check-doit] Error 1 make[2]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-= 29.4/test' make[1]: *** [Makefile:310: check] Error 2 make[1]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-= 29.4/test' make: *** [Makefile:1105: check] Error 2 Attached patch (for the emacs-30 branch) fixes the problem for me: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=0001-Fix-flymake-tests-with-GCC-14.patch >From 4a36a89eb441816d18a85233fe34cf27c33f131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Mon, 24 Jun 2024 15:20:26 +0200 Subject: [PATCH] Fix flymake tests with GCC 14. * test/lisp/progmodes/flymake-tests.el (included-c-header-files): Fix test failure with GCC 14. --- test/lisp/progmodes/flymake-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index 21dbb0711d2..93bc9028031 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el @@ -174,7 +174,8 @@ included-c-header-files (flymake-tests--with-flymake ("some-problems.h") (flymake-goto-next-error) - (should (eq 'flymake-warning (face-at-point))) + ;; implicit-int was promoted from warning to error in GCC 14 + (should (memq (face-at-point) '(flymake-warning flymake-error))) (flymake-goto-next-error) (should (eq 'flymake-error (face-at-point))) (should-error (flymake-goto-next-error nil nil t))) -- 2.45.2 --=-=-=--