Merge pull request #26920 from jamessan/backport-26913-to-release-0.9

[Backport release-0.9] fix(test/tui_spec): pass the expected NULL-sentinel to execl()
This commit is contained in:
James McCoy 2024-01-06 10:05:19 -05:00 committed by GitHub
commit 5fe8029cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1823,7 +1823,7 @@ describe('TUI', function()
write_file(script_file, [=[ write_file(script_file, [=[
local ffi = require('ffi') local ffi = require('ffi')
ffi.cdef([[int execl(const char *, const char *, ...);]]) 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() finally(function()
os.remove(script_file) os.remove(script_file)