comparison src/testdir/test_functions.vim @ 17278:b6de6181e5ab v8.1.1638

patch 8.1.1638: running tests leaves some files behind commit https://github.com/vim/vim/commit/3940ec6d41a07f9abbfba7d4db6b49d3d8b43a9a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 5 21:53:24 2019 +0200 patch 8.1.1638: running tests leaves some files behind Problem: Running tests leaves some files behind. Solution: Delete the files. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4617)
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 Jul 2019 22:00:05 +0200
parents 07bbe73b8e74
children f1fd0b0b335c
comparison
equal deleted inserted replaced
17277:76fb28a7149d 17278:b6de6181e5ab
1526 call bufload(buf) 1526 call bufload(buf)
1527 call assert_equal(1, bufloaded(buf)) 1527 call assert_equal(1, bufloaded(buf))
1528 call assert_equal([''], getbufline(buf, 1, '$')) 1528 call assert_equal([''], getbufline(buf, 1, '$'))
1529 1529
1530 let curbuf = bufnr('') 1530 let curbuf = bufnr('')
1531 call writefile(['some', 'text'], 'otherName') 1531 call writefile(['some', 'text'], 'XotherName')
1532 let buf = bufadd('otherName') 1532 let buf = bufadd('XotherName')
1533 call assert_notequal(0, buf) 1533 call assert_notequal(0, buf)
1534 call assert_equal(1, bufexists('otherName')) 1534 call assert_equal(1, bufexists('XotherName'))
1535 call assert_equal(0, getbufvar(buf, '&buflisted')) 1535 call assert_equal(0, getbufvar(buf, '&buflisted'))
1536 call assert_equal(0, bufloaded(buf)) 1536 call assert_equal(0, bufloaded(buf))
1537 call bufload(buf) 1537 call bufload(buf)
1538 call assert_equal(1, bufloaded(buf)) 1538 call assert_equal(1, bufloaded(buf))
1539 call assert_equal(['some', 'text'], getbufline(buf, 1, '$')) 1539 call assert_equal(['some', 'text'], getbufline(buf, 1, '$'))
1552 call assert_equal(1, bufexists(buf2)) 1552 call assert_equal(1, bufexists(buf2))
1553 exe 'bwipe ' .. buf2 1553 exe 'bwipe ' .. buf2
1554 call assert_equal(0, bufexists(buf2)) 1554 call assert_equal(0, bufexists(buf2))
1555 1555
1556 bwipe someName 1556 bwipe someName
1557 bwipe otherName 1557 bwipe XotherName
1558 call assert_equal(0, bufexists('someName')) 1558 call assert_equal(0, bufexists('someName'))
1559 endfunc 1559 call delete('XotherName')
1560 endfunc