diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-02-07 05:49:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-07 05:49:52 -0800 |
commit | ad853d1df093f30d0ca083a0c3a2935496533e8e (patch) | |
tree | 76fb37da977e88a24e67c5ccf7b18aaa29f6c55e /test/functional/terminal/tui_spec.lua | |
parent | 52ff5e3032eb5e39b49ce6f4e9a93cffdd39b830 (diff) | |
download | rneovim-ad853d1df093f30d0ca083a0c3a2935496533e8e.tar.gz rneovim-ad853d1df093f30d0ca083a0c3a2935496533e8e.tar.bz2 rneovim-ad853d1df093f30d0ca083a0c3a2935496533e8e.zip |
fix(messages): improve deadly signal messages #32364
Problem:
Deadly signal messages mention "Vim", and add redundant newlines.
Solution:
- Update the messages.
- Don't add an extra newline.
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index a2dc3c500f..147a8675cb 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -1951,10 +1951,10 @@ describe('TUI', function() exec_lua([[vim.uv.kill(vim.fn.jobpid(vim.bo.channel), 'sigterm')]]) screen:expect { grid = [[ - Vim: Caught deadly signal 'SIGTERM' | - |*2 + Nvim: Caught deadly signal 'SIGTERM' | + | [Process exited 1]^ | - |*2 + |*3 {3:-- TERMINAL --} | ]], } @@ -3337,9 +3337,7 @@ describe('TUI bg color', function() end) end) --- These tests require `tt` because --headless/--embed --- does not initialize the TUI. -describe('TUI as a client', function() +describe('TUI client', function() after_each(function() os.remove(testlog) end) @@ -3449,10 +3447,10 @@ describe('TUI as a client', function() exec_lua([[vim.uv.kill(vim.fn.jobpid(vim.bo.channel), 'sigterm')]]) screen_client:expect { grid = [[ - Vim: Caught deadly signal 'SIGTERM' | - |*2 + Nvim: Caught deadly signal 'SIGTERM' | + | [Process exited 1]^ | - |*2 + |*3 {3:-- TERMINAL --} | ]], } |