Skip to content

Commit efe0373

Browse files
committed
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)
1 parent 4b16ee7 commit efe0373

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/testdir/test_backup.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Tests for the backup function
22

33
func Test_backup()
4-
set backup backupdir=.
4+
set backup backupdir=. backupskip=
55
new
66
call setline(1, ['line1', 'line2'])
77
:f Xbackup.txt
@@ -12,13 +12,13 @@ func Test_backup()
1212
let l = readfile('Xbackup.txt~')
1313
call assert_equal(['line1', 'line2'], l)
1414
bw!
15-
set backup&vim backupdir&vim
15+
set backup&vim backupdir&vim backupskip&vim
1616
call delete('Xbackup.txt')
1717
call delete('Xbackup.txt~')
1818
endfunc
1919

2020
func Test_backup2()
21-
set backup backupdir=.//
21+
set backup backupdir=.// backupskip=
2222
new
2323
call setline(1, ['line1', 'line2', 'line3'])
2424
:f Xbackup.txt
@@ -34,11 +34,11 @@ func Test_backup2()
3434
bw!
3535
call delete('Xbackup.txt')
3636
call delete(f)
37-
set backup&vim backupdir&vim
37+
set backup&vim backupdir&vim backupskip&vim
3838
endfunc
3939

4040
func Test_backup2_backupcopy()
41-
set backup backupdir=.// backupcopy=yes
41+
set backup backupdir=.// backupcopy=yes backupskip=
4242
new
4343
call setline(1, ['line1', 'line2', 'line3'])
4444
:f Xbackup.txt
@@ -54,5 +54,5 @@ func Test_backup2_backupcopy()
5454
bw!
5555
call delete('Xbackup.txt')
5656
call delete(f)
57-
set backup&vim backupdir&vim backupcopy&vim
57+
set backup&vim backupdir&vim backupcopy&vim backupskip&vim
5858
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
264,
797799
/**/
798800
263,
799801
/**/

0 commit comments

Comments
 (0)