aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-27 10:38:04 +0800
committerGitHub <noreply@github.com>2025-02-27 10:38:04 +0800
commit877f3b7288fba61dfc90b1b50c9e4dfa06e32b9a (patch)
tree02c9536a1a55cf7c664779771ac1c456ef4f90fc /test/functional
parent189bba7c770e528f71b5ca129f82d5f7a9e113ea (diff)
downloadrneovim-877f3b7288fba61dfc90b1b50c9e4dfa06e32b9a.tar.gz
rneovim-877f3b7288fba61dfc90b1b50c9e4dfa06e32b9a.tar.bz2
rneovim-877f3b7288fba61dfc90b1b50c9e4dfa06e32b9a.zip
refactor(shada): fix coverity warning about leaking memory (#32650)
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/shada/shada_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/shada/shada_spec.lua b/test/functional/shada/shada_spec.lua
index 0d196072e7..651599dc5d 100644
--- a/test/functional/shada/shada_spec.lua
+++ b/test/functional/shada/shada_spec.lua
@@ -262,6 +262,12 @@ describe('ShaDa support code', function()
)
end)
+ it(':wshada/:rshada without arguments is no-op when shadafile=NONE', function()
+ nvim_command('set shadafile=NONE')
+ nvim_command('wshada')
+ nvim_command('rshada')
+ end)
+
it('does not crash when ShaDa file directory is not writable', function()
skip(is_os('win'))