test: tmpname(create:boolean) #30242

Problem:
137f98cf64 added the `create` parameter to `tmpname()` but didn't
fully implement it.

Solution:
- Update impl for the `os.tmpname()` codepath.
- Inspect all usages of `tmpname()`, update various tests.
This commit is contained in:
Justin M. Keyes
2024-09-03 02:18:17 -07:00
committed by GitHub
parent ae9674704a
commit ea2d949351
5 changed files with 9 additions and 8 deletions

View File

@@ -188,8 +188,7 @@ describe('startup --listen', function()
return
end
matches(expected, output)
cmd = vim.list_extend({ unpack(n.nvim_argv) }, args)
matches(expected, fn.system(cmd))
matches(expected, fn.system(vim.list_extend({ unpack(n.nvim_argv) }, args)))
end
_test({ '--listen' }, 'nvim.*: Argument missing after: "%-%-listen"')