branch: elpa/flycheck
commit 6968280d16f43651cd95fc1381f2c12c3dbb07a2
Author: Xiyue Deng <manp...@gmail.com>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Update flycheck-add-overlay/right-position-in-narrowed-buffer output
    
    - Output changed when running under Emacs 30.1
    
    Forwarded: not-needed
---
 test/flycheck-test.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/flycheck-test.el b/test/flycheck-test.el
index 21a7507504..bad4287686 100644
--- a/test/flycheck-test.el
+++ b/test/flycheck-test.el
@@ -2119,7 +2119,10 @@
     (should (= (length (flycheck-overlays-in (point-min) (point-max))) 2))
     ;; Remove restrictions and test that all errors are reported
     (widen)
-    (should (= (length (flycheck-overlays-in (point-min) (point-max))) 4))
+    (should (= (length (flycheck-overlays-in (point-min) (point-max)))
+               (if (< emacs-major-version 30)
+                   4
+                 5)))
     (skip-unless (version<= emacs-version "29"))
     (when (version<= "29.1" emacs-version)
       (ert-skip "Skipped for 29.1, the position seems to be off a litte..."))

Reply via email to