1
0
forked from aniani/vim

patch 8.1.0264: backup tests fail when CWD is in /tmp

Problem:    Backup tests fail when CWD is in /tmp.
Solution:   Make 'backupskip' empty. (Christian Brabandt, closes #3301)
This commit is contained in:
Bram Moolenaar
2018-08-09 22:26:38 +02:00
parent 4b16ee743e
commit efe03738f6
2 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
" Tests for the backup function " Tests for the backup function
func Test_backup() func Test_backup()
set backup backupdir=. set backup backupdir=. backupskip=
new new
call setline(1, ['line1', 'line2']) call setline(1, ['line1', 'line2'])
:f Xbackup.txt :f Xbackup.txt
@@ -12,13 +12,13 @@ func Test_backup()
let l = readfile('Xbackup.txt~') let l = readfile('Xbackup.txt~')
call assert_equal(['line1', 'line2'], l) call assert_equal(['line1', 'line2'], l)
bw! bw!
set backup&vim backupdir&vim set backup&vim backupdir&vim backupskip&vim
call delete('Xbackup.txt') call delete('Xbackup.txt')
call delete('Xbackup.txt~') call delete('Xbackup.txt~')
endfunc endfunc
func Test_backup2() func Test_backup2()
set backup backupdir=.// set backup backupdir=.// backupskip=
new new
call setline(1, ['line1', 'line2', 'line3']) call setline(1, ['line1', 'line2', 'line3'])
:f Xbackup.txt :f Xbackup.txt
@@ -34,11 +34,11 @@ func Test_backup2()
bw! bw!
call delete('Xbackup.txt') call delete('Xbackup.txt')
call delete(f) call delete(f)
set backup&vim backupdir&vim set backup&vim backupdir&vim backupskip&vim
endfunc endfunc
func Test_backup2_backupcopy() func Test_backup2_backupcopy()
set backup backupdir=.// backupcopy=yes set backup backupdir=.// backupcopy=yes backupskip=
new new
call setline(1, ['line1', 'line2', 'line3']) call setline(1, ['line1', 'line2', 'line3'])
:f Xbackup.txt :f Xbackup.txt
@@ -54,5 +54,5 @@ func Test_backup2_backupcopy()
bw! bw!
call delete('Xbackup.txt') call delete('Xbackup.txt')
call delete(f) call delete(f)
set backup&vim backupdir&vim backupcopy&vim set backup&vim backupdir&vim backupcopy&vim backupskip&vim
endfunc endfunc

View File

@@ -794,6 +794,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 */
/**/
264,
/**/ /**/
263, 263,
/**/ /**/