mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
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:
committed by
Christian Brabandt
parent
ca12f62d0a
commit
bbbc23ac2f
@@ -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
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1990,
|
||||
/**/
|
||||
1989,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user