summaryrefslogtreecommitdiff
path: root/src/testdir/test_options.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-30 22:36:18 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-30 22:36:18 +0100
commitcbbd0f657803a9a3a9f5e2c66bce6e1ea1d6a64b (patch)
treeb2d7896eb69c804f649a59441d26c3f45af36a95 /src/testdir/test_options.vim
parented71ed37bcd44bcbfcf59beee1248799de3315ec (diff)
downloadvim-git-cbbd0f657803a9a3a9f5e2c66bce6e1ea1d6a64b.tar.gz
patch 8.1.0853: options test fails on Macv8.1.0853
Problem: Options test fails on Mac. Solution: Remove a trailing slash from $TMPDIR.
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r--src/testdir/test_options.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 4d2c477c4..740863e3c 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -387,8 +387,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