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.
701df4eb64
This commit is contained in:
Justin M. Keyes
2019-04-29 21:21:30 +02:00
parent 7f8f6ac8d7
commit 7032562faf

View File

@@ -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)