mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
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:

committed by
Justin M. Keyes

parent
d646fe73ac
commit
a11fb248ef
@@ -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
|
||||
|
Reference in New Issue
Block a user