aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/tui_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-01-05 22:56:34 -0500
committerJames McCoy <jamessan@jamessan.com>2024-01-06 06:57:31 -0500
commit8861ad83fd7fe795ef3c77f0886694ffd7cd8184 (patch)
tree1b163097ad8c9a828e2a619d4402c9a84ca63b28 /test/functional/terminal/tui_spec.lua
parent28c183b38cdc00436d95af80ee8e34e4793ee38d (diff)
downloadrneovim-8861ad83fd7fe795ef3c77f0886694ffd7cd8184.tar.gz
rneovim-8861ad83fd7fe795ef3c77f0886694ffd7cd8184.tar.bz2
rneovim-8861ad83fd7fe795ef3c77f0886694ffd7cd8184.zip
fix(test/tui_spec): pass the expected NULL-sentinel to execl()
Since execl() is a variadic function, it requries a NULL-terminal to indicate the end of its argument list, c.f. exec(3) > The first argument, by convention, should point to the filename > associated with the file being executed. The list of arguments *must* > be terminated by a null pointer This fixes the failure seen on aarch64 and i386, due to garbage data being considered part of the variadic arguments.
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r--test/functional/terminal/tui_spec.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 831075fc08..f6ee0f9c77 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -24,7 +24,6 @@ local funcs = helpers.funcs
local meths = helpers.meths
local is_ci = helpers.is_ci
local is_os = helpers.is_os
-local is_arch = helpers.is_arch
local new_pipename = helpers.new_pipename
local spawn_argv = helpers.spawn_argv
local set_session = helpers.set_session
@@ -1932,9 +1931,6 @@ describe('TUI', function()
end)
it('argv[0] can be overridden #23953', function()
- if is_arch('aarch64') then
- pending('execl does not work on aarch64')
- end
if not exec_lua('return pcall(require, "ffi")') then
pending('missing LuaJIT FFI')
end
@@ -1944,7 +1940,7 @@ describe('TUI', function()
[=[
local ffi = require('ffi')
ffi.cdef([[int execl(const char *, const char *, ...);]])
- ffi.C.execl(vim.v.progpath, 'Xargv0nvim', '--clean')
+ ffi.C.execl(vim.v.progpath, 'Xargv0nvim', '--clean', nil)
]=]
)
finally(function()