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:
@@ -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
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user