diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-05 21:53:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-05 21:53:24 +0200 |
commit | 3940ec6d41a07f9abbfba7d4db6b49d3d8b43a9a (patch) | |
tree | 1e1a4d94cde09166c2f1f9546b17edcd44f499c6 | |
parent | 4f5b0e5355a673ba5228bef037dc5c30734a1378 (diff) | |
download | vim-git-3940ec6d41a07f9abbfba7d4db6b49d3d8b43a9a.tar.gz |
patch 8.1.1638: running tests leaves some files behindv8.1.1638
Problem: Running tests leaves some files behind.
Solution: Delete the files. (Ozaki Kiichi, closes #4617)
-rw-r--r-- | src/testdir/test_functions.vim | 9 | ||||
-rw-r--r-- | src/testdir/test_popupwin.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index a08cef79d..9199ba7ce 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -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 diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 3983b5761..00cc2878e 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -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() diff --git a/src/version.c b/src/version.c index b5aac1aca..c835eeee5 100644 --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1638, +/**/ 1637, /**/ 1636, |