mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.2101: CI: test_termdebug may still fail (#26003)
Problem: CI: test_termdebug may still fail
Solution: use term_wait() to make it more robust
closes: vim/vim#13529
fdbadea4b6
Co-authored-by: shane.xb.qian <shane.qian@foxmail.com>
This commit is contained in:
parent
c6b317dd13
commit
ad3568a701
@ -97,6 +97,7 @@ func Test_termdebug_basic()
|
|||||||
bw!
|
bw!
|
||||||
endif
|
endif
|
||||||
set columns=160
|
set columns=160
|
||||||
|
call Nterm_wait(gdb_buf)
|
||||||
let winw = winwidth(0)
|
let winw = winwidth(0)
|
||||||
Var
|
Var
|
||||||
if winwidth(0) < winw
|
if winwidth(0) < winw
|
||||||
@ -114,11 +115,9 @@ func Test_termdebug_basic()
|
|||||||
bw!
|
bw!
|
||||||
endif
|
endif
|
||||||
set columns&
|
set columns&
|
||||||
|
call Nterm_wait(gdb_buf)
|
||||||
|
|
||||||
wincmd t
|
wincmd t
|
||||||
" Nvim: stop GDB process and process pending events
|
|
||||||
call chanclose(&channel)
|
|
||||||
call wait(0, '0')
|
|
||||||
quit!
|
quit!
|
||||||
redraw!
|
redraw!
|
||||||
call WaitForAssert({-> assert_equal(1, winnr('$'))})
|
call WaitForAssert({-> assert_equal(1, winnr('$'))})
|
||||||
|
Loading…
Reference in New Issue
Block a user