# HG changeset patch # User Bram Moolenaar # Date 1548595805 -3600 # Node ID f315ab10d579e6f220acb8d0795b1a34cb576735 # Parent fb81e4e5a38b1b1cb4c5525b9b0127156e9eec2d patch 8.1.0830: test leaves directory behind on MS-Windows commit https://github.com/vim/vim/commit/e3d065454408a103c39308651dd7793f0bf55ba6 Author: Bram Moolenaar Date: Sun Jan 27 14:29:24 2019 +0100 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. diff --git a/src/testdir/test_swap.vim b/src/testdir/test_swap.vim --- a/src/testdir/test_swap.vim +++ b/src/testdir/test_swap.vim @@ -98,6 +98,9 @@ func Test_missing_dir() split bar/x.txt only + " Delete the buffer so that swap file is removed before we try to delete the + " directory. That fails on MS-Windows. + %bdelete! set directory& call delete('Xswapdir', 'rf') endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 830, +/**/ 829, /**/ 828,