aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorGhjuvan Lacambre <code@lacamb.re>2023-05-28 16:04:54 +0200
committerGitHub <noreply@github.com>2023-05-28 16:04:54 +0200
commit5a3752889c5b7e18d1041eb873ca2fa9ceb814bd (patch)
tree07e0a62ee0abe2814d310565b5d71b3a613de85f /test/functional
parentd561830a5242a00545a320acb80be083dd590d05 (diff)
downloadrneovim-5a3752889c5b7e18d1041eb873ca2fa9ceb814bd.tar.gz
rneovim-5a3752889c5b7e18d1041eb873ca2fa9ceb814bd.tar.bz2
rneovim-5a3752889c5b7e18d1041eb873ca2fa9ceb814bd.zip
fix(NVIM_APPNAME): show error message if $NVIM_APPNAME is invalid
Closes https://github.com/neovim/neovim/issues/23056.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/options/defaults_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index 3690b7e97c..60edf219d9 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -14,6 +14,7 @@ local ok = helpers.ok
local funcs = helpers.funcs
local insert = helpers.insert
local neq = helpers.neq
+local nvim_prog = helpers.nvim_prog
local mkdir = helpers.mkdir
local rmdir = helpers.rmdir
local alter_slashes = helpers.alter_slashes
@@ -603,6 +604,10 @@ describe('stdpath()', function()
eq(appname, funcs.fnamemodify(funcs.stdpath('data_dirs')[1], ':t'))
end
assert_alive() -- Check for crash. #8393
+
+ -- Check that nvim rejects invalid APPNAMEs
+ local child = funcs.jobstart({ nvim_prog }, {env={NVIM_APPNAME='a/b\\c'}})
+ eq(1, funcs.jobwait({child}, 3000)[1])
end)
context('returns a String', function()