diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-06 11:18:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 11:18:43 +0800 |
commit | ae28ef327e02ac87ef26f941c401312ed0462d8c (patch) | |
tree | dca68db1160d5d8657589298f17b4b5fe5553289 /test/functional/options/defaults_spec.lua | |
parent | ddbd2b4e40d0b744d4d5b2b2251a4fc4c51f43e1 (diff) | |
download | rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.tar.gz rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.tar.bz2 rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.zip |
fix: adjust error message for error in UI event callback (#28200)
Also close Nvim instance before removing log file, otherwise the Nvim
instance will still write to the log file.
Also adjust log level in libuv_process_spawn(). Ref #27660
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 5e98453565..5bf9aa5ac9 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -20,6 +20,7 @@ local rmdir = helpers.rmdir local alter_slashes = helpers.alter_slashes local tbl_contains = vim.tbl_contains local expect_exit = helpers.expect_exit +local check_close = helpers.check_close local is_os = helpers.is_os local testlog = 'Xtest-defaults-log' @@ -274,6 +275,7 @@ describe('XDG defaults', function() -- Do not put before_each() here for the same reasons. after_each(function() + check_close() os.remove(testlog) end) @@ -866,6 +868,7 @@ end) describe('stdpath()', function() after_each(function() + check_close() os.remove(testlog) end) @@ -1227,6 +1230,8 @@ describe('stdpath()', function() end) describe('errors', function() + before_each(clear) + it('on unknown strings', function() eq('Vim(call):E6100: "capybara" is not a valid stdpath', exc_exec('call stdpath("capybara")')) eq('Vim(call):E6100: "" is not a valid stdpath', exc_exec('call stdpath("")')) @@ -1242,6 +1247,7 @@ end) describe('autocommands', function() it('closes terminal with default shell on success', function() + clear() api.nvim_set_option_value('shell', helpers.testprg('shell-test'), {}) command('set shellcmdflag=EXIT shellredir= shellpipe= shellquote= shellxquote=') |