0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0853: options test fails on Mac

Problem:    Options test fails on Mac.
Solution:   Remove a trailing slash from $TMPDIR.
This commit is contained in:
Bram Moolenaar
2019-01-30 22:36:18 +01:00
parent ed71ed37bc
commit cbbd0f6578
2 changed files with 6 additions and 2 deletions

View File

@@ -387,8 +387,10 @@ func Test_backupskip()
for var in ['$TMPDIR', '$TMP', '$TEMP'] for var in ['$TMPDIR', '$TMP', '$TEMP']
if exists(var) if exists(var)
let varvalue = substitute(expand(var), '\\', '/', 'g') let varvalue = substitute(expand(var), '\\', '/', 'g')
let found = (index(bsklist, varvalue.'/*') >= 0) let varvalue = substitute(varvalue, '/$', '', '')
call assert_true(found, var . ' not in option bsk: ' . &bsk) let varvalue .= '/*'
let found = (index(bsklist, varvalue) >= 0)
call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk)
endif endif
endfor endfor
endfunc endfunc

View File

@@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
853,
/**/ /**/
852, 852,
/**/ /**/