From: Hirohito Higashi Date: Wed, 5 Aug 2026 19:29:01 +0000 (+0000) Subject: patch 9.2.0915: tests: two terminal tests in test_popupwin fail on FreeBSD X-Git-Tag: v9.2.0915^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd127c602deb480dd9fc7007e8e5a50897646122;p=thirdparty%2Fvim.git patch 9.2.0915: tests: two terminal tests in test_popupwin fail on FreeBSD Problem: Two terminal tests in test_popupwin fail on FreeBSD, where the shell echoes the typed character more than once (neil). Solution: Only assert the start of the terminal line. fixes: #20955 closes: #20957 Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 6826731090..61af5e050a 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -3076,11 +3076,12 @@ func Test_popupwin_terminal_buffer() call WaitForAssert({-> assert_equal("run", job_status(term_getjob(termbuf)))}) call WaitForAssert({-> assert_equal('', term_getline(termbuf, '.'))}) - " When typing a character, the cursor is after it. + " When typing a character, the cursor is after it. Some shells echo it + " more than once. call feedkeys("x", 'xt') call term_wait(termbuf) redraw - call WaitForAssert({-> assert_equal('x', term_getline(termbuf, '.'))}) + call WaitForAssert({-> assert_match('^x', term_getline(termbuf, '.'))}) call feedkeys("\", 'xt') " Check this doesn't crash @@ -5480,10 +5481,11 @@ func Test_popup_opacity_terminal_no_freeze() " Before the fix typing froze Vim: redraw under an opacity popup raised " must_redraw every cycle, trapping terminal_loop in its redraw loop. + " Some shells echo the character more than once. call feedkeys('x', 'xt') call term_wait(termbuf) redraw - call WaitForAssert({-> assert_equal('x', term_getline(termbuf, '.'))}) + call WaitForAssert({-> assert_match('^x', term_getline(termbuf, '.'))}) call feedkeys("\", 'xt') call feedkeys("exit\", 'xt') diff --git a/src/version.c b/src/version.c index 1931bc906f..cca2e3afa7 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 915, /**/ 914, /**/