Skip to content

Commit 3940ec6

Browse files
committed
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)
1 parent 4f5b0e5 commit 3940ec6

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/testdir/test_functions.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,10 +1528,10 @@ func Test_bufadd_bufload()
15281528
call assert_equal([''], getbufline(buf, 1, '$'))
15291529

15301530
let curbuf = bufnr('')
1531-
call writefile(['some', 'text'], 'otherName')
1532-
let buf = bufadd('otherName')
1531+
call writefile(['some', 'text'], 'XotherName')
1532+
let buf = bufadd('XotherName')
15331533
call assert_notequal(0, buf)
1534-
call assert_equal(1, bufexists('otherName'))
1534+
call assert_equal(1, bufexists('XotherName'))
15351535
call assert_equal(0, getbufvar(buf, '&buflisted'))
15361536
call assert_equal(0, bufloaded(buf))
15371537
call bufload(buf)
@@ -1554,6 +1554,7 @@ func Test_bufadd_bufload()
15541554
call assert_equal(0, bufexists(buf2))
15551555

15561556
bwipe someName
1557-
bwipe otherName
1557+
bwipe XotherName
15581558
call assert_equal(0, bufexists('someName'))
1559+
call delete('XotherName')
15591560
endfunc

src/testdir/test_popupwin.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,7 @@ func Test_popupwin_with_buffer()
17081708
let winid = popup_create(bufnr(''), {})
17091709
redraw
17101710
call popup_close(winid)
1711+
call delete('XsomeFile')
17111712
endfunc
17121713

17131714
func Test_popupwin_width()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1638,
780782
/**/
781783
1637,
782784
/**/

0 commit comments

Comments
 (0)