diff src/testdir/test_undo.vim @ 16702:16a698aeeec1 v8.1.1353

patch 8.1.1353: undo test fails on Mac commit https://github.com/vim/vim/commit/2b39d806f04c1a474b6d689a7970253850d4adb8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 19 16:38:56 2019 +0200 patch 8.1.1353: undo test fails on Mac Problem: Undo test fails on Mac. Solution: Expect "private" on the Mac.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 May 2019 16:45:05 +0200
parents 46322a4e6028
children 380adf86bf66
line wrap: on
line diff
--- a/src/testdir/test_undo.vim
+++ b/src/testdir/test_undo.vim
@@ -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&