aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/system_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-04-20 14:16:41 -0400
committerGitHub <noreply@github.com>2026-04-20 14:16:41 -0400
commit4ceca862fceb021049144a9aed05c60ae39b7aba (patch)
treeb7b1f1e421aeeaa2d30a348745c17f9f9b69b8d7 /test/functional/vimscript/system_spec.lua
parentfaa7c15b5a711435ed9d90f7fbf2a2ff8f1255c7 (diff)
downloadrneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.gz
rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.bz2
rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.zip
refactor(test): drop deprecated exc_exec #39242
Diffstat (limited to 'test/functional/vimscript/system_spec.lua')
-rw-r--r--test/functional/vimscript/system_spec.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/vimscript/system_spec.lua b/test/functional/vimscript/system_spec.lua
index 09b7b739f9..9a0df7acb7 100644
--- a/test/functional/vimscript/system_spec.lua
+++ b/test/functional/vimscript/system_spec.lua
@@ -11,7 +11,6 @@ local eq, call, clear, eval, feed_command, feed, api =
local command = n.command
local insert = n.insert
local expect = n.expect
-local exc_exec = n.exc_exec
local pcall_err = t.pcall_err
local is_os = t.is_os
@@ -357,7 +356,7 @@ describe('system()', function()
it('is treated as a buffer id', function()
command("put ='text in buffer 1'")
eq('\ntext in buffer 1\n', eval('system("cat", 1)'))
- eq('Vim(echo):E86: Buffer 42 does not exist', exc_exec('echo system("cat", 42)'))
+ eq('Vim(echo):E86: Buffer 42 does not exist', pcall_err(command, 'echo system("cat", 42)'))
end)
end)