diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-22 14:56:53 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-23 18:17:09 -0400 |
commit | 6558e02b95d94a8be60757cc39df227836ec1f9c (patch) | |
tree | 9323f5afd73774f2f830bfc06101f74d09a90ccd | |
parent | ca6b42d7fdb4e533e7875b1ed23e4a07b900b09d (diff) | |
download | rneovim-6558e02b95d94a8be60757cc39df227836ec1f9c.tar.gz rneovim-6558e02b95d94a8be60757cc39df227836ec1f9c.tar.bz2 rneovim-6558e02b95d94a8be60757cc39df227836ec1f9c.zip |
vim-patch:8.1.0853: options test fails on Mac
Problem: Options test fails on Mac.
Solution: Remove a trailing slash from $TMPDIR.
https://github.com/vim/vim/commit/cbbd0f657803a9a3a9f5e2c66bce6e1ea1d6a64b
-rw-r--r-- | src/nvim/testdir/test_options.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index eedf8c23c4..ecfc84432a 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -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 |