changeset 20291:f7b1e43beb8f v8.2.0701

patch 8.2.0701: Vim9 test fails without job feature Commit: https://github.com/vim/vim/commit/2a1381c305b32885c644cc300e4f6734292626a2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 5 23:32:58 2020 +0200 patch 8.2.0701: Vim9 test fails without job feature Problem: Vim9 test fails without job feature. Solution: Add feature check.
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 May 2020 23:45:04 +0200
parents d13d1716c856
children 4a68d21a0591
files src/testdir/test_vim9_script.vim src/version.c
diffstat 2 files changed, 15 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    701,
+/**/
     700,
 /**/
     699,