0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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.
This commit is contained in:
Bram Moolenaar 2019-04-28 23:07:18 +02:00
parent c779c674ac
commit 701df4eb64
2 changed files with 4 additions and 2 deletions

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

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1234,
/**/
1233,
/**/