]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1090: tests: test_terminwscroll_topline2 unreliable v9.1.1090
authorChristian Brabandt <cb@256bit.org>
Sun, 9 Feb 2025 16:10:30 +0000 (17:10 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 9 Feb 2025 16:10:30 +0000 (17:10 +0100)
commitaae1bfbdb96ccbbf5314321849b5f384a3d7c6a0
tree6917be08efa19956c13b39bdbc0914a9416354c2
parent6f14ef4b0b4e3cb8406c94ae0fdf4f3bdbd6672e
patch 9.1.1090: tests: test_terminwscroll_topline2 unreliable

Problem:  tests: test_terminwscroll_topline2 unreliable
          (Yee Cheng Chin)
Solution: instead of using term_wait() with a specific time, use
          terminal-api and to wait until the terminal is finished

call a terminal callback function when finished printing, instead of
using term_wait(), with a defined time, which caused timeouts on CI
with the macos runners

Unfortunately I couldn't figure out how to call the terminal-api on Windows,
so skip the test on Windows. cmd.com echo didn's seem to work and
neither did trying to use python, but perhaps it was just me fighting
with the terminal quoting rules :shrug:

related: #16599
related: #16552

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_terminal2.vim
src/version.c