aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-29 21:21:30 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-04-29 21:22:55 +0200
commit7032562faf9c9b44ca58284368937ad06b3a67fa (patch)
tree4ac8844049560c681940b4660db87e9af2abdce6
parent7f8f6ac8d702a3acf59b4bbe754181dada2abade (diff)
downloadrneovim-7032562faf9c9b44ca58284368937ad06b3a67fa.tar.gz
rneovim-7032562faf9c9b44ca58284368937ad06b3a67fa.tar.bz2
rneovim-7032562faf9c9b44ca58284368937ad06b3a67fa.zip
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
-rw-r--r--src/nvim/testdir/test_swap.vim4
1 files 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)