[vim/vim] tests: Test_statusline() is flaky (PR #20428)

3 views
Skip to first unread message

h_east

unread,
Jun 4, 2026, 5:44:32 PM (10 hours ago) Jun 4
to vim/vim, Subscribed
Problem:  Test_statusline() occasionally fails in CI, reading buffer text
          instead of the status line (e.g. '9012...' instead of '57,39').
Solution: In s:get_statusline() redraw unconditionally and read the screen
          cells directly with screenstring(), instead of relying on
          ScreenLines() whose own redraw! can process events and change the
          window layout between the redraw and reading the cells.  This
          matches the already-stable s:Assert_match_statusline() helper in
          test_statuslineopt.vim.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20428

Commit Summary

  • 6d26cf4 tests: Test_statusline() is flaky

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20428@github.com>

Reply all
Reply to author
Forward
0 new messages