aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/fileio_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-03 02:18:17 -0700
committerGitHub <noreply@github.com>2024-09-03 02:18:17 -0700
commitea2d9493514a82bb5077e73957a22648cb5d7d14 (patch)
treead7254108729759fe2e27746179c212d0a58089a /test/functional/core/fileio_spec.lua
parentae9674704ac5586438f60c883e918d448ef0e237 (diff)
downloadrneovim-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/core/fileio_spec.lua')
-rw-r--r--test/functional/core/fileio_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index 1c4f42eb43..073041fced 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -325,7 +325,7 @@ describe('tmpdir', function()
before_each(function()
-- Fake /tmp dir so that we can mess it up.
- os_tmpdir = vim.uv.fs_mkdtemp(vim.fs.dirname(t.tmpname()) .. '/nvim_XXXXXXXXXX')
+ os_tmpdir = vim.uv.fs_mkdtemp(vim.fs.dirname(t.tmpname(false)) .. '/nvim_XXXXXXXXXX')
end)
after_each(function()