Skip to content

Commit

Permalink
patch 8.1.1234: swap file test fails on MS-Windows
Browse files Browse the repository at this point in the history
Problem:    Swap file test fails on MS-Windows.
Solution:   Only compare the tail of the file names.
  • Loading branch information
brammool committed Apr 28, 2019
1 parent c779c67 commit 701df4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testdir/test_swap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1234,
/**/
1233,
/**/
Expand Down

0 comments on commit 701df4e

Please sign in to comment.