From e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 8 Jun 2022 23:22:50 +0200 Subject: fix(tests): check for EOF on exit of nvim properly --- test/functional/core/fileio_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/functional/core/fileio_spec.lua') diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index c68bc18eed..bc025771d1 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -16,12 +16,13 @@ local trim = helpers.trim local currentdir = helpers.funcs.getcwd local iswin = helpers.iswin local assert_alive = helpers.assert_alive +local expect_exit = helpers.expect_exit describe('fileio', function() before_each(function() end) after_each(function() - command(':qall!') + expect_exit(command, ':qall!') os.remove('Xtest_startup_shada') os.remove('Xtest_startup_file1') os.remove('Xtest_startup_file1~') -- cgit