Function Test_missing_dir() in file testdir/test_swap.vim creates a directory "Xswapfile" but is unable to delete it because it still contains a swapfile (this is Windows).
The attached patch corrects this by wiping out the buffer. -mike -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
>From 6009f7a5a3bd090a8b817ea6b0b42b935749b055 Mon Sep 17 00:00:00 2001 From: msoyka-of-wharton <[email protected]> Date: Sat, 26 Jan 2019 15:39:41 -0500 Subject: [PATCH] Fix Test_missing_dir() to delete Xswapfile --- src/testdir/test_swap.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testdir/test_swap.vim b/src/testdir/test_swap.vim index 208d4d966..db8af6803 100644 --- a/src/testdir/test_swap.vim +++ b/src/testdir/test_swap.vim @@ -97,6 +97,7 @@ func Test_missing_dir() " This should not give a warning for an existing swap file. split bar/x.txt only + %bdelete! set directory& call delete('Xswapdir', 'rf') -- 2.18.0.windows.1
