From 16cac1d5f58afb4bf1e2cceaa2b2e3f9a469eef1 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sun, 19 May 2019 16:39:26 -0300 Subject: vim-patch:8.1.1353: undo test fails on Mac Problem: Undo test fails on Mac. Solution: Expect "private" on the Mac. https://github.com/vim/vim/commit/2b39d806f04c1a474b6d689a7970253850d4adb8 --- src/nvim/testdir/test_undo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim index 08facb8344..0cb5dc4033 100644 --- a/src/nvim/testdir/test_undo.vim +++ b/src/nvim/testdir/test_undo.vim @@ -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& -- cgit