]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1353: undo test fails on Mac v8.1.1353
authorBram Moolenaar <Bram@vim.org>
Sun, 19 May 2019 14:38:56 +0000 (16:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 May 2019 14:38:56 +0000 (16:38 +0200)
Problem:    Undo test fails on Mac.
Solution:   Expect "private" on the Mac.

src/testdir/test_undo.vim
src/version.c

index ba1c861f8b9c6624c3378711a9cd1374ae0fa71b..1440660adf9fe54fd79f768d55c57b768e60f415 100644 (file)
@@ -442,7 +442,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&
index f349d7b733ead6a7db9d516d35de273a2b9b677e..d163546831a87b2ebef4ca70674179112922d8de 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1353,
 /**/
     1352,
 /**/