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:
Daniel Hahler 2019-07-30 15:08:05 +02:00 committed by GitHub
parent 7f6ff829aa
commit da87b67812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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