mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: runnvim.vim: do not call jobstop() (#10659)
It should be done for timeouts only (-1, not != -1), but the job is stopped via `:bwipeout!` already also in that case. Fixes E900 with timing out tests: "test_xxx.tlog" "test_xxx.tlog" [New] 183L, 13375C written Error detected while processing function Main: line 37: E900: Invalid channel id================================================================================
This commit is contained in:
parent
7f6ff829aa
commit
da87b67812
@ -20,7 +20,7 @@ function Main()
|
|||||||
let results = jobwait([job], 5 * 60 * 1000)
|
let results = jobwait([job], 5 * 60 * 1000)
|
||||||
" TODO(ZyX-I): Get colors
|
" TODO(ZyX-I): Get colors
|
||||||
let screen = getline(1, '$')
|
let screen = getline(1, '$')
|
||||||
bwipeout!
|
bwipeout! " kills the job always.
|
||||||
let stringified_events = map(s:logger.d_events,
|
let stringified_events = map(s:logger.d_events,
|
||||||
\'v:val[0] . ": " . ' .
|
\'v:val[0] . ": " . ' .
|
||||||
\'join(map(v:val[1], '.
|
\'join(map(v:val[1], '.
|
||||||
@ -43,9 +43,6 @@ function Main()
|
|||||||
\])
|
\])
|
||||||
write
|
write
|
||||||
if results[0] != 0
|
if results[0] != 0
|
||||||
if results[0] != -1
|
|
||||||
call jobstop(job)
|
|
||||||
endif
|
|
||||||
cquit
|
cquit
|
||||||
else
|
else
|
||||||
qall
|
qall
|
||||||
|
Loading…
Reference in New Issue
Block a user