aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-01 01:17:33 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-01 01:18:48 -0400
commitafcfb7bd58a6ca98524f60f934852c31a288a9a5 (patch)
tree7488cd22ad533f1cf2949ad6d6cdddcae4089998 /src
parent2d002100b38d40124311a420858d39c169bc0be4 (diff)
downloadrneovim-afcfb7bd58a6ca98524f60f934852c31a288a9a5.tar.gz
rneovim-afcfb7bd58a6ca98524f60f934852c31a288a9a5.tar.bz2
rneovim-afcfb7bd58a6ca98524f60f934852c31a288a9a5.zip
vim-patch:8.1.1436: writefile test fails when run under /tmp
Problem: Writefile test fails when run under /tmp. Solution: Adjust 'backupskip. (Kenta Sato, closes vim/vim#4462) https://github.com/vim/vim/commit/c28cb5b16df76353a5995fda3b9341612b8630c1
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_writefile.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim
index b4585a72ef..aeee6ad88b 100644
--- a/src/nvim/testdir/test_writefile.vim
+++ b/src/nvim/testdir/test_writefile.vim
@@ -38,7 +38,7 @@ func Test_writefile_fails_conversion()
endif
" Without a backup file the write won't happen if there is a conversion
" error.
- set nobackup nowritebackup
+ set nobackup nowritebackup backupdir=. backupskip=
new
let contents = ["line one", "line two"]
call writefile(contents, 'Xfile')
@@ -49,7 +49,7 @@ func Test_writefile_fails_conversion()
call delete('Xfile')
bwipe!
- set backup& writebackup&
+ set backup& writebackup& backupdir&vim backupskip&vim
endfunc
func Test_writefile_fails_conversion2()
@@ -58,7 +58,7 @@ func Test_writefile_fails_conversion2()
endif
" With a backup file the write happens even if there is a conversion error,
" but then the backup file must remain
- set nobackup writebackup
+ set nobackup writebackup backupdir=. backupskip=
let contents = ["line one", "line two"]
call writefile(contents, 'Xfile_conversion_err')
edit Xfile_conversion_err
@@ -71,6 +71,7 @@ func Test_writefile_fails_conversion2()
call delete('Xfile_conversion_err')
call delete('Xfile_conversion_err~')
bwipe!
+ set backup& writebackup& backupdir&vim backupskip&vim
endfunc
func SetFlag(timer)