diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-03 02:18:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 02:18:17 -0700 |
commit | ea2d9493514a82bb5077e73957a22648cb5d7d14 (patch) | |
tree | ad7254108729759fe2e27746179c212d0a58089a /test/functional/plugin/man_spec.lua | |
parent | ae9674704ac5586438f60c883e918d448ef0e237 (diff) | |
download | rneovim-ea2d9493514a82bb5077e73957a22648cb5d7d14.tar.gz rneovim-ea2d9493514a82bb5077e73957a22648cb5d7d14.tar.bz2 rneovim-ea2d9493514a82bb5077e73957a22648cb5d7d14.zip |
test: tmpname(create:boolean) #30242
Problem:
137f98cf6428 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.
Diffstat (limited to 'test/functional/plugin/man_spec.lua')
-rw-r--r-- | test/functional/plugin/man_spec.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua index c0256d1c63..057748f51d 100644 --- a/test/functional/plugin/man_spec.lua +++ b/test/functional/plugin/man_spec.lua @@ -8,7 +8,6 @@ local exec_lua = n.exec_lua local fn = n.fn local nvim_prog = n.nvim_prog local matches = t.matches -local write_file = t.write_file local tmpname = t.tmpname local eq = t.eq local pesc = vim.pesc @@ -226,7 +225,6 @@ describe(':Man', function() local actual_file = tmpname() -- actual_file must be an absolute path to an existent file for us to test against it matches('^/.+', actual_file) - write_file(actual_file, '') local args = { nvim_prog, '--headless', '+:Man ' .. actual_file, '+q' } matches( ('Error detected while processing command line:\r\n' .. 'man.lua: "no manual entry for %s"'):format( |