]> granicus.if.org Git - vim/commitdiff
patch 8.0.0258: mksession test leaves file behind v8.0.0258
authorBram Moolenaar <Bram@vim.org>
Sun, 29 Jan 2017 13:14:09 +0000 (14:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 29 Jan 2017 13:14:09 +0000 (14:14 +0100)
Problem:    mksession test leaves file behind.
Solution:   Delete the file.  Rename files to start with "X".

src/testdir/test_mksession.vim
src/version.c

index 77025c85442b622dbc8cb76bfaf0a112fa34f5b6..a51180cf0bdef5fd2a677ac20c1015a66ee56134 100644 (file)
@@ -22,7 +22,7 @@ func Test_mksession()
     \   'aä Ä  two multiByte characters',
     \   'Aäöü  three mulTibyte characters'
     \ ])
-  let tmpfile = tempname()
+  let tmpfile = 'Xtemp'
   exec 'w! ' . tmpfile
   /^start:
   set wrap
@@ -63,8 +63,8 @@ func Test_mksession()
   norm! j016|3zl
   split
   call wincol()
-  mksession! test_mks.out
-  let li = filter(readfile('test_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
+  mksession! Xtest_mks.out
+  let li = filter(readfile('Xtest_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
   let expected = [
     \   'normal! 016|',
     \   'normal! 016|',
@@ -96,7 +96,7 @@ func Test_mksession()
   call assert_equal(expected, li)
   tabclose!
 
-  call delete('test_mks.out')
+  call delete('Xtest_mks.out')
   call delete(tmpfile)
   let &wrap = wrap_save
 endfunc
@@ -104,10 +104,10 @@ endfunc
 func Test_mksession_winheight()
   new
   set winheight=10 winminheight=2
-  mksession! test_mks.out
-  source test_mks.out
+  mksession! Xtest_mks.out
+  source Xtest_mks.out
 
-  " call delete('test_mks.out')
+  call delete('Xtest_mks.out')
 endfunc
 
 " vim: shiftwidth=2 sts=2 expandtab
index d3dc08885011cd327398e74fbfae91c5e5630d83..aaeb258ef97daf2f6dce22af0b73c0c6ca370315 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    258,
 /**/
     257,
 /**/