Mercurial > vim
comparison src/testdir/test_options.vim @ 15691:a8ed064ed316 v8.1.0853
patch 8.1.0853: options test fails on Mac
commit https://github.com/vim/vim/commit/cbbd0f657803a9a3a9f5e2c66bce6e1ea1d6a64b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 30 22:36:18 2019 +0100
patch 8.1.0853: options test fails on Mac
Problem: Options test fails on Mac.
Solution: Remove a trailing slash from $TMPDIR.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Jan 2019 22:45:06 +0100 |
parents | e472308af17d |
children | ad8b2c109b22 |
comparison
equal
deleted
inserted
replaced
15690:1cf39a0d90c9 | 15691:a8ed064ed316 |
---|---|
385 " Option bsk will also include these environment variables if defined. | 385 " Option bsk will also include these environment variables if defined. |
386 " If they're defined, verify they appear in the option value. | 386 " If they're defined, verify they appear in the option value. |
387 for var in ['$TMPDIR', '$TMP', '$TEMP'] | 387 for var in ['$TMPDIR', '$TMP', '$TEMP'] |
388 if exists(var) | 388 if exists(var) |
389 let varvalue = substitute(expand(var), '\\', '/', 'g') | 389 let varvalue = substitute(expand(var), '\\', '/', 'g') |
390 let found = (index(bsklist, varvalue.'/*') >= 0) | 390 let varvalue = substitute(varvalue, '/$', '', '') |
391 call assert_true(found, var . ' not in option bsk: ' . &bsk) | 391 let varvalue .= '/*' |
392 let found = (index(bsklist, varvalue) >= 0) | |
393 call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk) | |
392 endif | 394 endif |
393 endfor | 395 endfor |
394 endfunc | 396 endfunc |
395 | 397 |
396 func Test_copy_winopt() | 398 func Test_copy_winopt() |