Skip to content

Commit e3d0654

Browse files
committed
patch 8.1.0830: test leaves directory behind on MS-Windows
Problem: Test leaves directory behind on MS-Windows. Solution: Close buffer before deleting directory.
1 parent d39e275 commit e3d0654

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_swap.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func Test_missing_dir()
9898
split bar/x.txt
9999
only
100100

101+
" Delete the buffer so that swap file is removed before we try to delete the
102+
" directory. That fails on MS-Windows.
103+
%bdelete!
101104
set directory&
102105
call delete('Xswapdir', 'rf')
103106
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
830,
786788
/**/
787789
829,
788790
/**/

0 commit comments

Comments
 (0)