changeset 17087:bc730bb54a7c v8.1.1543

patch 8.1.1543: const test fails with small features commit https://github.com/vim/vim/commit/b6e3b88ec8b757b3acf940f8b4938e975c39ba67 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 15 17:50:57 2019 +0200 patch 8.1.1543: const test fails with small features Problem: Const test fails with small features. Solution: Don't unlet non-existing variables.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jun 2019 18:00:07 +0200
parents 74e4dcf7a65a
children 49eb35886d80
files src/testdir/test_const.vim src/version.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_const.vim
+++ b/src/testdir/test_const.vim
@@ -43,8 +43,10 @@ func Test_define_var_with_lock()
     unlet F
     unlet l
     unlet d
-    unlet j
-    unlet c
+    if has('channel')
+      unlet j
+      unlet c
+    endif
     unlet b
     unlet n
     unlet bl
@@ -92,8 +94,10 @@ func Test_define_l_var_with_lock()
     unlet l:F
     unlet l:l
     unlet l:d
-    unlet l:j
-    unlet l:c
+    if has('channel')
+      unlet l:j
+      unlet l:c
+    endif
     unlet l:b
     unlet l:n
     unlet l:bl
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1543,
+/**/
     1542,
 /**/
     1541,