diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-30 15:08:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 15:08:05 +0200 |
commit | da87b678125962076ce5627b1a32181284f2fe5d (patch) | |
tree | c1fcb72c865755008ba04c6ca2ae23814ae2ad5b | |
parent | 7f6ff829aa2347eb940d8e70a825ea335d8f15ed (diff) | |
download | rneovim-da87b678125962076ce5627b1a32181284f2fe5d.tar.gz rneovim-da87b678125962076ce5627b1a32181284f2fe5d.tar.bz2 rneovim-da87b678125962076ce5627b1a32181284f2fe5d.zip |
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================================================================================
-rw-r--r-- | src/nvim/testdir/runnvim.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/testdir/runnvim.vim b/src/nvim/testdir/runnvim.vim index 396a3a6477..52e05cfbeb 100644 --- a/src/nvim/testdir/runnvim.vim +++ b/src/nvim/testdir/runnvim.vim @@ -20,7 +20,7 @@ function Main() let results = jobwait([job], 5 * 60 * 1000) " TODO(ZyX-I): Get colors let screen = getline(1, '$') - bwipeout! + bwipeout! " kills the job always. let stringified_events = map(s:logger.d_events, \'v:val[0] . ": " . ' . \'join(map(v:val[1], '. @@ -43,9 +43,6 @@ function Main() \]) write if results[0] != 0 - if results[0] != -1 - call jobstop(job) - endif cquit else qall |