1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

test(mkdir): disable undofile option

This commit is contained in:
wsdjeg 2022-09-11 21:07:23 +08:00
parent 773d2f8b0e
commit 7b4580c1c7

View File

@ -4,11 +4,16 @@ Execute ( SpaceVim plugin: mkdir.vim ):
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
augroup END
let tempfile = tempname() . '/test/test'
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
let undofile = &undofile
set noundofile
exe 'e' tempfile
w
AssertEqual filereadable(tempfile), 1
bwipeout
let &undofile = undofile
unlet tempfile
unlet undofile
augroup mkdir_test
au!
augroup END