Skip to content

Commit 2b39d80

Browse files
committed
patch 8.1.1353: undo test fails on Mac
Problem: Undo test fails on Mac. Solution: Expect "private" on the Mac.
1 parent e9ebc9a commit 2b39d80

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/testdir/test_undo.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ funct Test_undofile()
442442

443443
if isdirectory('/tmp')
444444
set undodir=/tmp
445-
call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
445+
if has('osx')
446+
call assert_equal('/tmp/%private%tmp%file', undofile('///tmp/file'))
447+
else
448+
call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
449+
endif
446450
endif
447451

448452
set undodir&

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1353,
770772
/**/
771773
1352,
772774
/**/

0 commit comments

Comments
 (0)