patch 9.1.1990: tests: Test_term_gettty() fails when using conpty on Windows

Problem:  tests: Test_term_gettty() fails when using conpty on Windows,
          CI uses winpty, so this test passes.
Solution: Skip the test Test_term_gettty(). Since conpty communicates
          via anonymous pipes, there is no name that can be obtained
          with term_gettty() (Muraoka Taro)

closes: #18954

Signed-off-by: Muraoka Taro <koron.kaoriya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Muraoka Taro
2025-12-17 20:52:32 +01:00
committed by Christian Brabandt
parent ca12f62d0a
commit bbbc23ac2f
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -4766,6 +4766,9 @@ def Test_term_gettty()
CheckFeature terminal
else
var buf = g:Run_shell_in_terminal({})
if has('win32') && buf->term_getjob()->job_info()['tty_type'] == 'conpty'
throw 'Skipped: When using conpty, term_gettty() always returns an empty string.'
endif
term_gettty(buf, true)->assert_notequal('')
g:StopShellInTerminal(buf)
endif
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1990,
/**/
1989,
/**/