mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Separate test for SIGWINCH handling
This commit is contained in:
@@ -92,12 +92,18 @@ def socket_child_main(exit_code=0, initial_print=''):
|
||||
# pty = self.create_pty(
|
||||
# argv=[kitty_exe(), '+runpy', src + 'socket_child_main(initial_print="child ready:")'], cols=cols, env=env, cwd=cwd)
|
||||
# pty.wait_till(lambda: 'child ready:' in pty.screen_contents())
|
||||
# pty.set_window_size(columns=cols + 3)
|
||||
# pty.wait_till(lambda: f'Screen size changed: {cols + 3}' in pty.screen_contents())
|
||||
# pty.write_to_child('\x03', flush=True)
|
||||
# wait_for_death(signal.SIGINT, timeout=30)
|
||||
# pty.wait_till(lambda: 'KeyboardInterrupt' in pty.screen_contents())
|
||||
|
||||
# test SIGWINCH handling
|
||||
pty = self.create_pty(
|
||||
argv=[kitty_exe(), '+runpy', src + 'socket_child_main(initial_print="child ready:")'], cols=cols, env=env, cwd=cwd)
|
||||
pty.wait_till(lambda: 'child ready:' in pty.screen_contents())
|
||||
pty.set_window_size(columns=cols + 3)
|
||||
pty.wait_till(lambda: f'Screen size changed: {cols + 3}' in pty.screen_contents())
|
||||
os.close(pty.master_fd)
|
||||
|
||||
# test passing of data via cwd, env vars and stdin/stdout redirection
|
||||
stdin_r, stdin_w = os.pipe()
|
||||
os.set_inheritable(stdin_w, False)
|
||||
|
||||
Reference in New Issue
Block a user