From e587112e6382aae80d46097c2e7636e22abdf917 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 15 Apr 2025 20:45:31 +0900 Subject: [PATCH] test: check xdg-dbus-proxy termination This process runs outside the application container's pid namespace, so it is a good idea to check whether its lifecycle becomes decoupled from the application. Signed-off-by: Ophestra --- test/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.py b/test/test.py index d72dafb..ceb067e 100644 --- a/test/test.py +++ b/test/test.py @@ -152,6 +152,8 @@ print(machine.fail("sudo -u alice -i fortify -v run --wayland true")) fortify('-v run --wayland --dbus notify-send -a "NixOS Tests" "Test notification" "Notification from within sandbox." && touch /tmp/dbus-ok') machine.wait_for_file("/tmp/dbus-ok", timeout=15) collect_state_ui("dbus_notify_exited") +# not in pid namespace, verify termination +machine.wait_until_fails("pgrep xdg-dbus-proxy") machine.succeed("pkill -9 mako") # Check revert type selection: