new
let sample = 'samples/recover-crash1.swp'
let target = 'Xpoc1.swp'
- call filecopy(sample, target)
+ " In an out-of-source-tree build the sample may be a symlink, this copies the
+ " data into a real file.
+ call writefile(readblob(sample), target, 'D')
try
sil recover! Xpoc1
catch /^Vim\%((\S\+)\)\=:E1364:/
new
let sample = 'samples/recover-crash2.swp'
let target = 'Xpoc2.swp'
- call filecopy(sample, target)
+ " In an out-of-source-tree build the sample may be a symlink, this copies the
+ " data into a real file.
+ call writefile(readblob(sample), target, 'D')
try
sil recover! Xpoc2
catch /^Vim\%((\S\+)\)\=:E1364:/