vim-patch:8.1.0830: test leaves directory behind #10152

Problem:    Test leaves directory behind on MS-Windows.
Solution:   Close buffer before deleting directory.
e3d0654544
This commit is contained in:
Daniel Hahler
2019-06-08 14:57:20 +02:00
committed by Justin M. Keyes
parent d646fe73ac
commit a11fb248ef

View File

@@ -98,6 +98,9 @@ func Test_missing_dir()
split bar/x.txt split bar/x.txt
only 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& set directory&
call delete('Xswapdir', 'rf') call delete('Xswapdir', 'rf')
endfunc endfunc