neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f914b4e7a864bb67c26765c02d6ab10346d2135a
parent c43e2874c083d66a563f262f7fb7d7ec84bce814
Author: Javier Lopez <graulopezjavier@gmail.com>
Date:   Sat, 28 May 2022 12:34:18 -0500

test: fixeol cleanup created files #18785

The async nature of feed_command caused a race condition on the calls
to delete, leaving the files on the root of the repo. Just use os.remove
and no need to wipeout.
Diffstat:
Mtest/functional/legacy/fixeol_spec.lua | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/test/functional/legacy/fixeol_spec.lua b/test/functional/legacy/fixeol_spec.lua @@ -6,12 +6,11 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers describe('fixeol', function() local function rmtestfiles() - feed_command('%bwipeout!') - feed_command('call delete("test.out")') - feed_command('call delete("XXEol")') - feed_command('call delete("XXNoEol")') - feed_command('call delete("XXTestEol")') - feed_command('call delete("XXTestNoEol")') + os.remove("test.out") + os.remove("XXEol") + os.remove("XXNoEol") + os.remove("XXTestEol") + os.remove("XXTestNoEol") end setup(function() clear()