]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix flymake tests with GCC 14.
authorUlrich Müller <ulm@gentoo.org>
Mon, 24 Jun 2024 13:20:26 +0000 (15:20 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:31:13 +0000 (15:31 +0200)
* test/lisp/progmodes/flymake-tests.el (included-c-header-files):
Fix test failure with GCC 14.  (Bug#71749)

(cherry picked from commit a769f171e7ebb8e30f198f4328d46f47fe7958fb)

test/lisp/progmodes/flymake-tests.el

index 21dbb0711d27b2d9088efe947dd5c1675e1d45e7..93bc9028031e96e5aa898dd3ac01bfbef640fb30 100644 (file)
@@ -174,7 +174,8 @@ SEVERITY-PREDICATE is used to setup
     (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)))