changeset 19306:e4a155edc9cb v8.2.0211

patch 8.2.0211: test for ANSI colors fails without an "ls" command Commit: https://github.com/vim/vim/commit/94255df057afa0b7dde77612f3274d4440871bd1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 5 20:10:33 2020 +0100 patch 8.2.0211: test for ANSI colors fails without an "ls" command Problem: Test for ANSI colors fails without an "ls" command. Solution: Use "dir". (Ken Takata, closes https://github.com/vim/vim/issues/5582)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Feb 2020 20:15:04 +0100
parents c2a908fc485c
children 95f6fdf33667
files src/testdir/test_functions.vim src/version.c
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -1965,7 +1965,7 @@ func Test_range()
 
   " settagstack()
   call settagstack(1, #{items : range(4)})
-  
+
   " sign_define()
   call assert_fails("call sign_define(range(5))", "E715:")
   call assert_fails("call sign_placelist(range(5))", "E715:")
@@ -1997,12 +1997,17 @@ func Test_range()
   set tagfunc=TagFunc
   call assert_fails("call taglist('asdf')", 'E987:')
   set tagfunc=
-  
+
   " term_start()
   if has('terminal') && has('termguicolors')
     call assert_fails('call term_start(range(3, 4))', 'E474:')
     let g:terminal_ansi_colors = range(16)
-    call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')
+    if has('win32')
+      let cmd = "cmd /c dir"
+    else
+      let cmd = "ls"
+    endif
+    call assert_fails('call term_start("' .. cmd .. '", #{term_finish: "close"})', 'E475:')
     unlet g:terminal_ansi_colors
   endif
 
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    211,
+/**/
     210,
 /**/
     209,