vim-patch:8.1.1353: undo test fails on Mac

Problem:    Undo test fails on Mac.
Solution:   Expect "private" on the Mac.
2b39d806f0
This commit is contained in:
Francisco Giordano
2019-05-19 16:39:26 -03:00
parent 8b3c0b87ff
commit 16cac1d5f5

View File

@@ -391,7 +391,11 @@ funct Test_undofile()
if isdirectory('/tmp')
set undodir=/tmp
call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
if has('osx')
call assert_equal('/tmp/%private%tmp%file', undofile('///tmp/file'))
else
call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
endif
endif
set undodir&