diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-22 18:14:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-22 18:14:58 +0200 |
commit | 2690b5aed8b6b6070430b05dcae296cd9479c942 (patch) | |
tree | a46bd609532e4be16d3def7e6ff1d483c30fa31d /src/testdir/runtest.vim | |
parent | bc6fcbe4ce52bc48c3d77b24086acc61ed3333bc (diff) |
patch 8.2.1267: MS-Windows: tests may fail due to $PROMPT valuev8.2.1267
Problem: MS-Windows: tests may fail due to $PROMPT value.
Solution: Set $PROMPT for testing. (Taro Muraoka, closes #6510)
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 60805f1318..3cf2a506c9 100644 --- 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 |