From a11fb248ef78f5d3d1e8f621f63ef5719aafcfad Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 8 Jun 2019 14:57:20 +0200 Subject: vim-patch:8.1.0830: test leaves directory behind #10152 Problem: Test leaves directory behind on MS-Windows. Solution: Close buffer before deleting directory. https://github.com/vim/vim/commit/e3d065454408a103c39308651dd7793f0bf55ba6 --- src/nvim/testdir/test_swap.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nvim/testdir/test_swap.vim b/src/nvim/testdir/test_swap.vim index 3db438cf4b..11eb324488 100644 --- a/src/nvim/testdir/test_swap.vim +++ b/src/nvim/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 -- cgit