From b2cb05b53e61d162044f71227e0ffeacbf59a4bb Mon Sep 17 00:00:00 2001 From: Loong Wang Date: Mon, 11 Apr 2022 06:56:08 +0800 Subject: feat(events): support SIGWINCH for Signal event #18029 closes #15411 --- test/functional/autocmd/signal_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functional') diff --git a/test/functional/autocmd/signal_spec.lua b/test/functional/autocmd/signal_spec.lua index 719adeaf1b..d4f65cc61d 100644 --- a/test/functional/autocmd/signal_spec.lua +++ b/test/functional/autocmd/signal_spec.lua @@ -30,6 +30,12 @@ describe('autocmd Signal', function() eq({'notification', 'foo', {}}, next_msg()) end) + it('matches SIGWINCH', function() + command('autocmd Signal SIGWINCH call rpcnotify(1, "foo")') + posix_kill('WINCH', funcs.getpid()) + eq({'notification', 'foo', {}}, next_msg()) + end) + it('does not match unknown patterns', function() command('autocmd Signal SIGUSR2 call rpcnotify(1, "foo")') posix_kill('USR1', funcs.getpid()) -- cgit