Skip to content

Commit 801c3c1

Browse files
dpellebrammool
authored andcommitted
patch 8.2.4900: Vim9 expression test fails without the job feature
Problem: Vim9 expression test fails without the job feature. Solution: Add a check for the job feature. (Dominique Pellé, closes #10373)
1 parent ef02f16 commit 801c3c1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/testdir/test_vim9_expr.vim

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,10 +1463,12 @@ func Test_expr4_fails()
14631463
call v9.CheckDefAndScriptFailure(["var x = [13] =~ [88]"], 'Cannot compare list with list', 1)
14641464
call v9.CheckDefAndScriptFailure(["var x = [13] !~ [88]"], 'Cannot compare list with list', 1)
14651465

1466-
call v9.CheckDefAndScriptFailure(['var j: job', 'var chan: channel', 'var r = j == chan'], 'Cannot compare job with channel', 3)
1467-
call v9.CheckDefAndScriptFailure(['var j: job', 'var x: list<any>', 'var r = j == x'], 'Cannot compare job with list', 3)
1468-
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
1469-
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
1466+
if has('job')
1467+
call v9.CheckDefAndScriptFailure(['var j: job', 'var chan: channel', 'var r = j == chan'], 'Cannot compare job with channel', 3)
1468+
call v9.CheckDefAndScriptFailure(['var j: job', 'var x: list<any>', 'var r = j == x'], 'Cannot compare job with list', 3)
1469+
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
1470+
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
1471+
endif
14701472
endfunc
14711473

14721474
" test addition, subtraction, concatenation

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ static char *(features[]) =
746746

747747
static int included_patches[] =
748748
{ /* Add new patch number below this line */
749+
/**/
750+
4900,
749751
/**/
750752
4899,
751753
/**/

0 commit comments

Comments
 (0)