Mercurial > vim
comparison src/testdir/runtest.vim @ 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 | 20dad734a2cb |
children | 6b2a5418cbc3 |
comparison
equal
deleted
inserted
replaced
21432:10571a176468 | 21433:ad7ffbd3f02f |
---|---|
114 | 114 |
115 " Always use forward slashes. | 115 " Always use forward slashes. |
116 set shellslash | 116 set shellslash |
117 | 117 |
118 let s:srcdir = expand('%:p:h:h') | 118 let s:srcdir = expand('%:p:h:h') |
119 | |
120 if has('win32') | |
121 " avoid prompt that is long or contains a line break | |
122 let $PROMPT = '$P$G' | |
123 endif | |
119 | 124 |
120 " Prepare for calling test_garbagecollect_now(). | 125 " Prepare for calling test_garbagecollect_now(). |
121 let v:testing = 1 | 126 let v:testing = 1 |
122 | 127 |
123 " Support function: get the alloc ID by name. | 128 " Support function: get the alloc ID by name. |