]> granicus.if.org Git - vim/commitdiff
patch 8.1.1638: running tests leaves some files behind v8.1.1638
authorBram Moolenaar <Bram@vim.org>
Fri, 5 Jul 2019 19:53:24 +0000 (21:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 5 Jul 2019 19:53:24 +0000 (21:53 +0200)
Problem:    Running tests leaves some files behind.
Solution:   Delete the files. (Ozaki Kiichi, closes #4617)

src/testdir/test_functions.vim
src/testdir/test_popupwin.vim
src/version.c

index a08cef79d1bc1a346517832927dc9eeb91703e29..9199ba7ce7c33eb13181b4f0d158310a3d80d570 100644 (file)
@@ -1528,10 +1528,10 @@ func Test_bufadd_bufload()
   call assert_equal([''], getbufline(buf, 1, '$'))
 
   let curbuf = bufnr('')
-  call writefile(['some', 'text'], 'otherName')
-  let buf = bufadd('otherName')
+  call writefile(['some', 'text'], 'XotherName')
+  let buf = bufadd('XotherName')
   call assert_notequal(0, buf)
-  call assert_equal(1, bufexists('otherName'))
+  call assert_equal(1, bufexists('XotherName'))
   call assert_equal(0, getbufvar(buf, '&buflisted'))
   call assert_equal(0, bufloaded(buf))
   call bufload(buf)
@@ -1554,6 +1554,7 @@ func Test_bufadd_bufload()
   call assert_equal(0, bufexists(buf2))
 
   bwipe someName
-  bwipe otherName
+  bwipe XotherName
   call assert_equal(0, bufexists('someName'))
+  call delete('XotherName')
 endfunc
index 3983b5761a417e00ccdfae84c5b1deea228cc469..00cc2878e457e708d6c682cff9a8f310c9abeb27 100644 (file)
@@ -1708,6 +1708,7 @@ func Test_popupwin_with_buffer()
   let winid = popup_create(bufnr(''), {})
   redraw
   call popup_close(winid)
+  call delete('XsomeFile')
 endfunc
 
 func Test_popupwin_width()
index b5aac1acaaac4ef28d279bf503cb2c28c5f8c903..c835eeee551a398403f68bcf45d65f8dec8a4420 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1638,
 /**/
     1637,
 /**/