aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/tui_spec.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-24 21:19:01 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-04-02 17:07:44 +0200
commitffe3002568f849df1b155b90d6ea0e1f48d8c6d5 (patch)
tree8b4732fcbc9b9902f04b1c2b990f2cc7b2ac20a4 /test/functional/terminal/tui_spec.lua
parent6cfca21bac6bb39b50cba1c23ffb2b69e2d94df8 (diff)
downloadrneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.tar.gz
rneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.tar.bz2
rneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.zip
test: silence expected errors
This will remove unrelated errors in .nvimlog at the end of test output.
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r--test/functional/terminal/tui_spec.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 10d9099431..007ae25b33 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -29,6 +29,9 @@ local spawn_argv = helpers.spawn_argv
local set_session = helpers.set_session
local write_file = helpers.write_file
local eval = helpers.eval
+local assert_log = helpers.assert_log
+
+local testlog = 'Xtest-tui-log'
if helpers.skip(is_os('win')) then
return
@@ -3000,6 +3003,10 @@ end)
-- These tests require `thelpers` because --headless/--embed
-- does not initialize the TUI.
describe('TUI as a client', function()
+ after_each(function()
+ os.remove(testlog)
+ end)
+
it('connects to remote instance (with its own TUI)', function()
local server_super = spawn_argv(false) -- equivalent to clear()
local client_super = spawn_argv(true)
@@ -3077,7 +3084,7 @@ describe('TUI as a client', function()
it('connects to remote instance (--headless)', function()
local server = spawn_argv(false) -- equivalent to clear()
- local client_super = spawn_argv(true)
+ local client_super = spawn_argv(true, { env = { NVIM_LOG_FILE = testlog } })
set_session(server)
local server_pipe = api.nvim_get_vvar('servername')
@@ -3120,6 +3127,9 @@ describe('TUI as a client', function()
client_super:close()
server:close()
+ if is_os('mac') then
+ assert_log('uv_tty_set_mode failed: Unknown system error %-102', testlog)
+ end
end)
it('throws error when no server exists', function()