diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-01 03:12:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 03:12:37 +0100 |
commit | f8010ea3eca77961312afeb96234678447ce17e4 (patch) | |
tree | d9603329fd3320df04f11576d6152491042e9af0 /test/functional/ex_cmds/mkview_spec.lua | |
parent | 648fed975eb8ddde9c5cbc0f859d06deebf80dd9 (diff) | |
download | rneovim-f8010ea3eca77961312afeb96234678447ce17e4.tar.gz rneovim-f8010ea3eca77961312afeb96234678447ce17e4.tar.bz2 rneovim-f8010ea3eca77961312afeb96234678447ce17e4.zip |
test: robust cleanup, unique filenames #7950 (#7950)
Use unique filenames to avoid test conflicts.
Use read_file() instead of io.popen(), to ensures the file is closed.
Use helpers.rmdir(), it is far more robust than lfs.
closes #7911
Diffstat (limited to 'test/functional/ex_cmds/mkview_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/mkview_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/mkview_spec.lua b/test/functional/ex_cmds/mkview_spec.lua index 97a49dbbd5..fef8065b2e 100644 --- a/test/functional/ex_cmds/mkview_spec.lua +++ b/test/functional/ex_cmds/mkview_spec.lua @@ -24,7 +24,7 @@ describe(':mkview', function() after_each(function() -- Remove any views created in the view directory rmdir(view_dir) - lfs.rmdir(local_dir) + rmdir(local_dir) end) it('viewoption curdir restores local current directory', function() |