]> granicus.if.org Git - vim/commitdiff
patch 8.1.0830: test leaves directory behind on MS-Windows v8.1.0830
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 13:29:24 +0000 (14:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 13:29:24 +0000 (14:29 +0100)
Problem:    Test leaves directory behind on MS-Windows.
Solution:   Close buffer before deleting directory.

src/testdir/test_swap.vim
src/version.c

index 208d4d966ef42c6d96d5757697a29b0d84a197c6..ce52578919dbcff98d433f3570f7225740698feb 100644 (file)
@@ -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
index af289037c9a4b8cb9eee74bb56ae77a04dd803de..9891796328fe6416a10af8c6b2c3ef8646538ec9 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    830,
 /**/
     829,
 /**/