mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 14:55:33 +00:00
test: functional: Remove test_bkc_* files after testing
This commit is contained in:
@@ -6,10 +6,13 @@ local eq, eval, clear, write_file, execute, source =
|
||||
helpers.execute, helpers.source
|
||||
|
||||
describe(':write', function()
|
||||
it('&backupcopy=auto preserves symlinks', function()
|
||||
clear('set backupcopy=auto')
|
||||
after_each(function()
|
||||
os.remove('test_bkc_file.txt')
|
||||
os.remove('test_bkc_link.txt')
|
||||
end)
|
||||
|
||||
it('&backupcopy=auto preserves symlinks', function()
|
||||
clear('set backupcopy=auto')
|
||||
write_file('test_bkc_file.txt', 'content0')
|
||||
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
source([[
|
||||
@@ -23,8 +26,6 @@ describe(':write', function()
|
||||
|
||||
it('&backupcopy=no replaces symlink with new file', function()
|
||||
clear('set backupcopy=no')
|
||||
os.remove('test_bkc_file.txt')
|
||||
os.remove('test_bkc_link.txt')
|
||||
write_file('test_bkc_file.txt', 'content0')
|
||||
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
source([[
|
||||
|
||||
Reference in New Issue
Block a user