From: Bram Moolenaar Date: Tue, 5 May 2020 21:32:58 +0000 (+0200) Subject: patch 8.2.0701: Vim9 test fails without job feature X-Git-Tag: v8.2.0701 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a1381c305b32885c644cc300e4f6734292626a2;p=vim patch 8.2.0701: Vim9 test fails without job feature Problem: Vim9 test fails without job feature. Solution: Add feature check. --- diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 76ce2e549..40aae46a1 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -466,19 +466,21 @@ def Test_try_catch_fails() call CheckDefFailure(['throw xxx'], 'E1001:') enddef -let someJob = test_null_job() +if has('channel') + let someJob = test_null_job() -def FuncWithError() - echomsg g:someJob -enddef + def FuncWithError() + echomsg g:someJob + enddef -func Test_convert_emsg_to_exception() - try - call FuncWithError() - catch - call assert_match('Vim:E908:', v:exception) - endtry -endfunc + func Test_convert_emsg_to_exception() + try + call FuncWithError() + catch + call assert_match('Vim:E908:', v:exception) + endtry + endfunc +endif let s:export_script_lines =<< trim END vim9script diff --git a/src/version.c b/src/version.c index 4c743cbfa..0dc91da61 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 701, /**/ 700, /**/