aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-06-28 12:37:39 +0200
committerGitHub <noreply@github.com>2022-06-28 12:37:39 +0200
commit094086a713bc952bd017a1edb214abba20b50e10 (patch)
treedb49efeac98b76749241af0786b7fa38ff49bd76 /test/functional/ex_cmds
parentee6b21e8430ea810ba2e3e9163b941386a2e1d65 (diff)
parent89f75dcd1f779a93936c90c7a124c2983c018df0 (diff)
downloadrneovim-094086a713bc952bd017a1edb214abba20b50e10.tar.gz
rneovim-094086a713bc952bd017a1edb214abba20b50e10.tar.bz2
rneovim-094086a713bc952bd017a1edb214abba20b50e10.zip
Merge #19060 memory leaks
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r--test/functional/ex_cmds/sign_spec.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/sign_spec.lua b/test/functional/ex_cmds/sign_spec.lua
index 891cfe1670..f280a45174 100644
--- a/test/functional/ex_cmds/sign_spec.lua
+++ b/test/functional/ex_cmds/sign_spec.lua
@@ -1,5 +1,5 @@
local helpers = require('test.functional.helpers')(after_each)
-local clear, nvim, eq = helpers.clear, helpers.nvim, helpers.eq
+local clear, nvim, eq, assert_alive = helpers.clear, helpers.nvim, helpers.eq, helpers.assert_alive
describe('sign', function()
before_each(clear)
@@ -21,4 +21,11 @@ describe('sign', function()
end)
end)
end)
+
+ describe('define {id}', function()
+ it ('does not leak memory when specifying multiple times the same argument', function()
+ nvim('command', 'sign define Foo culhl=Normal culhl=Normal')
+ assert_alive()
+ end)
+ end)
end)