neovim

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

commit 22389159f532d67a676bcf0c7c53edb421b8bc37
parent bf1d4e9793fcad74085ff6c32a6da5c43fe891e3
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  7 Jun 2025 16:53:00 +0800

test(tui_spec): avoid dangling process in OSC 52 test (#34356)


Diffstat:
Mtest/functional/terminal/tui_spec.lua | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua @@ -102,6 +102,7 @@ describe('TUI :detach', function() local child_session = n.connect(child_server) finally(function() + -- Avoid a dangling process after :detach. child_session:request('nvim_command', 'qall!') end) local status, child_uis = child_session:request('nvim_list_uis') @@ -3456,6 +3457,11 @@ describe('TUI', function() -- Attach another (non-TUI) UI to the child instance local alt = Screen.new(nil, nil, nil, child_session) + finally(function() + alt:detach() + -- Avoid a dangling process after :detach. + child_session:request('nvim_command', 'qall!') + end) -- Detach the first (primary) client so only the second UI is attached feed_data(':detach\n') @@ -3464,8 +3470,6 @@ describe('TUI', function() -- osc52 should be cleared from termfeatures eq({ true, {} }, { child_session:request('nvim_eval', 'g:termfeatures') }) - - alt:detach() end) it('does not query the terminal for OSC 52 support when disabled', function()