mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.1638: running tests leaves some files behind
Problem: Running tests leaves some files behind. Solution: Delete the files. (Ozaki Kiichi, closes #4617)
This commit is contained in:
@@ -1528,10 +1528,10 @@ func Test_bufadd_bufload()
|
|||||||
call assert_equal([''], getbufline(buf, 1, '$'))
|
call assert_equal([''], getbufline(buf, 1, '$'))
|
||||||
|
|
||||||
let curbuf = bufnr('')
|
let curbuf = bufnr('')
|
||||||
call writefile(['some', 'text'], 'otherName')
|
call writefile(['some', 'text'], 'XotherName')
|
||||||
let buf = bufadd('otherName')
|
let buf = bufadd('XotherName')
|
||||||
call assert_notequal(0, buf)
|
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, getbufvar(buf, '&buflisted'))
|
||||||
call assert_equal(0, bufloaded(buf))
|
call assert_equal(0, bufloaded(buf))
|
||||||
call bufload(buf)
|
call bufload(buf)
|
||||||
@@ -1554,6 +1554,7 @@ func Test_bufadd_bufload()
|
|||||||
call assert_equal(0, bufexists(buf2))
|
call assert_equal(0, bufexists(buf2))
|
||||||
|
|
||||||
bwipe someName
|
bwipe someName
|
||||||
bwipe otherName
|
bwipe XotherName
|
||||||
call assert_equal(0, bufexists('someName'))
|
call assert_equal(0, bufexists('someName'))
|
||||||
|
call delete('XotherName')
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -1708,6 +1708,7 @@ func Test_popupwin_with_buffer()
|
|||||||
let winid = popup_create(bufnr(''), {})
|
let winid = popup_create(bufnr(''), {})
|
||||||
redraw
|
redraw
|
||||||
call popup_close(winid)
|
call popup_close(winid)
|
||||||
|
call delete('XsomeFile')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_popupwin_width()
|
func Test_popupwin_width()
|
||||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1638,
|
||||||
/**/
|
/**/
|
||||||
1637,
|
1637,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user