0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0258: mksession test leaves file behind

Problem:    mksession test leaves file behind.
Solution:   Delete the file.  Rename files to start with "X".
This commit is contained in:
Bram Moolenaar 2017-01-29 14:14:09 +01:00
parent e0b66da691
commit c9b56b2ceb
2 changed files with 9 additions and 7 deletions

View File

@ -22,7 +22,7 @@ func Test_mksession()
\ 'aä Ä two multiByte characters', \ 'aä Ä two multiByte characters',
\ 'Aäöü three mulTibyte characters' \ 'Aäöü three mulTibyte characters'
\ ]) \ ])
let tmpfile = tempname() let tmpfile = 'Xtemp'
exec 'w! ' . tmpfile exec 'w! ' . tmpfile
/^start: /^start:
set wrap set wrap
@ -63,8 +63,8 @@ func Test_mksession()
norm! j016|3zl norm! j016|3zl
split split
call wincol() call wincol()
mksession! test_mks.out mksession! Xtest_mks.out
let li = filter(readfile('test_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"') let li = filter(readfile('Xtest_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
let expected = [ let expected = [
\ 'normal! 016|', \ 'normal! 016|',
\ 'normal! 016|', \ 'normal! 016|',
@ -96,7 +96,7 @@ func Test_mksession()
call assert_equal(expected, li) call assert_equal(expected, li)
tabclose! tabclose!
call delete('test_mks.out') call delete('Xtest_mks.out')
call delete(tmpfile) call delete(tmpfile)
let &wrap = wrap_save let &wrap = wrap_save
endfunc endfunc
@ -104,10 +104,10 @@ endfunc
func Test_mksession_winheight() func Test_mksession_winheight()
new new
set winheight=10 winminheight=2 set winheight=10 winminheight=2
mksession! test_mks.out mksession! Xtest_mks.out
source test_mks.out source Xtest_mks.out
" call delete('test_mks.out') call delete('Xtest_mks.out')
endfunc endfunc
" vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab

View File

@ -764,6 +764,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 */
/**/
258,
/**/ /**/
257, 257,
/**/ /**/