mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: Windows: Re-enable shada functional tests
One of the tests remains disabled until we figure out the expected behaviour of mkdir() on Windows when `prot` is passed.
This commit is contained in:
parent
32156f06f7
commit
ae1ba2b2fb
@ -8,8 +8,6 @@ local reset, set_additional_cmd, clear =
|
||||
shada_helpers.reset, shada_helpers.set_additional_cmd,
|
||||
shada_helpers.clear
|
||||
|
||||
if helpers.pending_win32(pending) then return end
|
||||
|
||||
describe('ShaDa support code', function()
|
||||
local testfilename = 'Xtestfile-functional-shada-buffers'
|
||||
local testfilename_2 = 'Xtestfile-functional-shada-buffers-2'
|
||||
|
@ -14,8 +14,6 @@ local nvim_current_line = function()
|
||||
return curwinmeths.get_cursor()[1]
|
||||
end
|
||||
|
||||
if helpers.pending_win32(pending) then return end
|
||||
|
||||
describe('ShaDa support code', function()
|
||||
local testfilename = 'Xtestfile-functional-shada-marks'
|
||||
local testfilename_2 = 'Xtestfile-functional-shada-marks-2'
|
||||
|
@ -23,8 +23,6 @@ local wshada, _, shada_fname, clean =
|
||||
local dirname = 'Xtest-functional-shada-shada.d'
|
||||
local dirshada = dirname .. '/main.shada'
|
||||
|
||||
if helpers.pending_win32(pending) then return end
|
||||
|
||||
describe('ShaDa support code', function()
|
||||
before_each(reset)
|
||||
after_each(function()
|
||||
@ -173,6 +171,7 @@ describe('ShaDa support code', function()
|
||||
end
|
||||
|
||||
it('correctly uses shada-r option', function()
|
||||
nvim_command('set shellslash')
|
||||
meths.set_var('__home', paths.test_source_path)
|
||||
nvim_command('let $HOME = __home')
|
||||
nvim_command('unlet __home')
|
||||
@ -196,6 +195,7 @@ describe('ShaDa support code', function()
|
||||
end)
|
||||
|
||||
it('correctly ignores case with shada-r option', function()
|
||||
nvim_command('set shellslash')
|
||||
local pwd = funcs.getcwd()
|
||||
local relfname = 'абв/test'
|
||||
local fname = pwd .. '/' .. relfname
|
||||
@ -240,6 +240,8 @@ describe('ShaDa support code', function()
|
||||
end)
|
||||
|
||||
it('does not crash when ShaDa file directory is not writable', function()
|
||||
if helpers.pending_win32(pending) then return end
|
||||
|
||||
funcs.mkdir(dirname, '', 0)
|
||||
eq(0, funcs.filewritable(dirname))
|
||||
set_additional_cmd('set shada=')
|
||||
|
Loading…
Reference in New Issue
Block a user