]> granicus.if.org Git - vim/commitdiff
patch 8.1.1234: swap file test fails on MS-Windows v8.1.1234
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Apr 2019 21:07:18 +0000 (23:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Apr 2019 21:07:18 +0000 (23:07 +0200)
Problem:    Swap file test fails on MS-Windows.
Solution:   Only compare the tail of the file names.

src/testdir/test_swap.vim
src/version.c

index b6bf90c29fcee78238be0b338e4e51ed8d8d0c99..9eda9b223d06a36d81a3f93be8d458ed3462b4c9 100644 (file)
@@ -194,7 +194,7 @@ func Test_swapfile_delete()
   let s:swapname = ''
   split XswapfileText
   quit
-  call assert_equal(swapfile_name, s:swapname)
+  call assert_equal(fnamemodify(swapfile_name, ':t'), fnamemodify(s:swapname, ':t'))
 
   " Write the swapfile with a modified PID, now it will be automatically
   " deleted. Process one should never be Vim.
@@ -211,7 +211,7 @@ func Test_swapfile_delete()
   let s:swapname = ''
   split XswapfileText
   quit
-  call assert_equal(swapfile_name, s:swapname)
+  call assert_equal(fnamemodify(swapfile_name, ':t'), fnamemodify(s:swapname, ':t'))
 
   call delete('XswapfileText')
   call delete(swapfile_name)
index 48aa4645144581781714123fe5c98096499e1200..c082c065cc2d2891362f2477a159c47da4a54ada 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1234,
 /**/
     1233,
 /**/