test: tmpname() can skip file creation

This commit is contained in:
Justin M. Keyes
2024-09-02 19:14:09 +02:00
parent ef8067a19d
commit 137f98cf64
4 changed files with 25 additions and 49 deletions

View File

@@ -74,8 +74,7 @@ describe('vim.loader', function()
vim.loader.enable()
]]
local tmp = t.tmpname()
assert(os.remove(tmp))
local tmp = t.tmpname(false)
assert(t.mkdir(tmp))
assert(t.mkdir(tmp .. '/%'))
local tmp1 = tmp .. '/%/x'