From b43d10468039a07ada412dcab83e8e074ab9ef46 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 29 Jul 2025 02:21:12 +0900 Subject: app: integrate interrupt forwarding This significantly increases usability of command line tools running through hakurei. Signed-off-by: Ophestra --- test/test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index 9e150399..d0252cfd 100644 --- a/test/test.py +++ b/test/test.py @@ -178,6 +178,16 @@ machine.succeed("pkill -INT -f 'hakurei -v app '") machine.wait_until_fails("pgrep foot", timeout=5) machine.wait_for_file("/tmp/monitor-exit-code") interrupt_exit_code = int(machine.succeed("cat /tmp/monitor-exit-code")) +if interrupt_exit_code != 230: + raise Exception(f"unexpected exit code {interrupt_exit_code}") + +# Check interrupt shim behaviour immediate termination: +swaymsg("exec sh -c 'ne-foot-immediate; echo -n $? > /tmp/monitor-exit-code'") +wait_for_window(f"u0_a{aid(0)}@machine") +machine.succeed("pkill -INT -f 'hakurei -v app '") +machine.wait_until_fails("pgrep foot", timeout=5) +machine.wait_for_file("/tmp/monitor-exit-code") +interrupt_exit_code = int(machine.succeed("cat /tmp/monitor-exit-code")) if interrupt_exit_code != 254: raise Exception(f"unexpected exit code {interrupt_exit_code}") -- cgit v1.3.1