changeset 21433:ad7ffbd3f02f v8.2.1267

patch 8.2.1267: MS-Windows: tests may fail due to $PROMPT value Commit: https://github.com/vim/vim/commit/2690b5aed8b6b6070430b05dcae296cd9479c942 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 22 18:14:58 2020 +0200 patch 8.2.1267: MS-Windows: tests may fail due to $PROMPT value Problem: MS-Windows: tests may fail due to $PROMPT value. Solution: Set $PROMPT for testing. (Taro Muraoka, closes https://github.com/vim/vim/issues/6510)
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Jul 2020 18:30:05 +0200
parents 10571a176468
children 67d5a0b55c52
files src/testdir/runtest.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -117,6 +117,11 @@ set shellslash
 
 let s:srcdir = expand('%:p:h:h')
 
+if has('win32')
+  " avoid prompt that is long or contains a line break
+  let $PROMPT = '$P$G'
+endif
+
 " Prepare for calling test_garbagecollect_now().
 let v:testing = 1
 
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1267,
+/**/
     1266,
 /**/
     1265,