@@ -38,7 +38,7 @@ func Test_writefile_fails_conversion()
3838 endif
3939 " Without a backup file the write won't happen if there is a conversion
4040 " error.
41- set nobackup nowritebackup
41+ set nobackup nowritebackup backupdir = . backupskip =
4242 new
4343 let contents = [" line one" , " line two" ]
4444 call writefile (contents, ' Xfile' )
@@ -49,7 +49,7 @@ func Test_writefile_fails_conversion()
4949
5050 call delete (' Xfile' )
5151 bwipe!
52- set backup & writebackup &
52+ set backup & writebackup & backupdir & vim backupskip & vim
5353endfunc
5454
5555func Test_writefile_fails_conversion2 ()
@@ -58,7 +58,7 @@ func Test_writefile_fails_conversion2()
5858 endif
5959 " With a backup file the write happens even if there is a conversion error,
6060 " but then the backup file must remain
61- set nobackup writebackup
61+ set nobackup writebackup backupdir = . backupskip =
6262 let contents = [" line one" , " line two" ]
6363 call writefile (contents, ' Xfile_conversion_err' )
6464 edit Xfile_conversion_err
@@ -71,6 +71,7 @@ func Test_writefile_fails_conversion2()
7171 call delete (' Xfile_conversion_err' )
7272 call delete (' Xfile_conversion_err~' )
7373 bwipe!
74+ set backup & writebackup & backupdir &vim backupskip &vim
7475endfunc
7576
7677func SetFlag (timer)
0 commit comments