Patch 8.2.1609
Problem: Vim9: test fails when build without +channel.
Solution: Add check for +channel. (closes #6879)
Files: src/testdir/test_vim9_expr.vim
*** ../vim-8.2.1608/src/testdir/test_vim9_expr.vim 2020-08-27 23:08:38.274559889 +0200
--- src/testdir/test_vim9_expr.vim 2020-09-05 20:05:24.456020212 +0200
***************
*** 1105,1120 ****
echo 'a' .. function('len')
END
CheckScriptFailure(lines, 'E729:', 2)
! lines =<< trim END
! vim9script
! echo 'a' .. test_null_job()
! END
! CheckScriptFailure(lines, 'E908:', 2)
! lines =<< trim END
! vim9script
! echo 'a' .. test_null_channel()
! END
! CheckScriptFailure(lines, 'E908:', 2)
enddef
def Test_expr5_float()
--- 1105,1127 ----
echo 'a' .. function('len')
END
CheckScriptFailure(lines, 'E729:', 2)
! enddef
!
! def Test_expr5_vim9script_channel()
! if !has('channel')
! MissingFeature 'float'
! else
! let lines =<< trim END
! vim9script
! echo 'a' .. test_null_job()
! END
! CheckScriptFailure(lines, 'E908:', 2)
! lines =<< trim END
! vim9script
! echo 'a' .. test_null_channel()
! END
! CheckScriptFailure(lines, 'E908:', 2)
! endif
enddef
def Test_expr5_float()
***************
*** 1172,1177 ****
--- 1179,1188 ----
call CheckDefFailure(["let x = 'a' .. 0z32"], 'E1105', 1)
call CheckDefFailure(["let x = 'a' .. function('len')"], 'E1105', 1)
call CheckDefFailure(["let x = 'a' .. function('len', ['a'])"], 'E1105', 1)
+ endfunc
+
+ func Test_expr5_fails_channel()
+ CheckFeature channel
call CheckDefFailure(["let x = 'a' .. test_null_job()"], 'E1105', 1)
call CheckDefFailure(["let x = 'a' .. test_null_channel()"], 'E1105', 1)
endfunc
*** ../vim-8.2.1608/src/version.c 2020-09-05 19:59:33.784862273 +0200
--- src/version.c 2020-09-05 20:02:43.344406565 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1609,
/**/
--
BLACK KNIGHT: Come on you pansy!
[hah] [parry thrust]
[ARTHUR chops the BLACK KNIGHT's right arm off]
ARTHUR: Victory is mine! [kneeling]
We thank thee Lord, that in thy merc-
[Black Knight kicks Arthur in the head while he is praying]
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///