0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.0701: Vim9 test fails without job feature

Problem:    Vim9 test fails without job feature.
Solution:   Add feature check.
This commit is contained in:
Bram Moolenaar
2020-05-05 23:32:58 +02:00
parent 40ee466c36
commit 2a1381c305
2 changed files with 15 additions and 11 deletions

View File

@@ -466,19 +466,21 @@ def Test_try_catch_fails()
call CheckDefFailure(['throw xxx'], 'E1001:') call CheckDefFailure(['throw xxx'], 'E1001:')
enddef enddef
let someJob = test_null_job() if has('channel')
let someJob = test_null_job()
def FuncWithError() def FuncWithError()
echomsg g:someJob echomsg g:someJob
enddef enddef
func Test_convert_emsg_to_exception() func Test_convert_emsg_to_exception()
try try
call FuncWithError() call FuncWithError()
catch catch
call assert_match('Vim:E908:', v:exception) call assert_match('Vim:E908:', v:exception)
endtry endtry
endfunc endfunc
endif
let s:export_script_lines =<< trim END let s:export_script_lines =<< trim END
vim9script vim9script

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
701,
/**/ /**/
700, 700,
/**/ /**/