vim-patch:8.1.0853: options test fails on Mac

Problem:    Options test fails on Mac.
Solution:   Remove a trailing slash from $TMPDIR.
cbbd0f6578
This commit is contained in:
Jan Edmund Lazo
2019-06-22 14:56:53 -04:00
parent ca6b42d7fd
commit 6558e02b95

View File

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