From 7032562faf9c9b44ca58284368937ad06b3a67fa Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 29 Apr 2019 21:21:30 +0200 Subject: vim-patch:8.1.1234: swap file test fails on MS-Windows Problem: Swap file test fails on MS-Windows. Solution: Only compare the tail of the file names. https://github.com/vim/vim/commit/701df4eb64ae9945c63f83621b54aa69e1336a79 --- src/nvim/testdir/test_swap.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/testdir/test_swap.vim b/src/nvim/testdir/test_swap.vim index c7e164ea00..4dc8803a2a 100644 --- a/src/nvim/testdir/test_swap.vim +++ b/src/nvim/testdir/test_swap.vim @@ -156,7 +156,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. @@ -173,7 +173,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) -- cgit