mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
tests/functional: delete temp file created during test run (#14363)
This commit is contained in:
@@ -9,6 +9,7 @@ local feed_data = thelpers.feed_data
|
|||||||
if helpers.pending_win32(pending) then return end
|
if helpers.pending_win32(pending) then return end
|
||||||
|
|
||||||
describe('autoread TUI FocusGained/FocusLost', function()
|
describe('autoread TUI FocusGained/FocusLost', function()
|
||||||
|
local f1 = 'xtest-foo'
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
@@ -17,8 +18,12 @@ describe('autoread TUI FocusGained/FocusLost', function()
|
|||||||
..'", "-u", "NONE", "-i", "NONE", "--cmd", "set noswapfile noshowcmd noruler"]')
|
..'", "-u", "NONE", "-i", "NONE", "--cmd", "set noswapfile noshowcmd noruler"]')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
teardown(function()
|
||||||
|
os.remove(f1)
|
||||||
|
end)
|
||||||
|
|
||||||
it('external file change', function()
|
it('external file change', function()
|
||||||
local path = 'xtest-foo'
|
local path = f1
|
||||||
local expected_addition = [[
|
local expected_addition = [[
|
||||||
line 1
|
line 1
|
||||||
line 2
|
line 2
|
||||||
|
|||||||
Reference in New Issue
Block a user