From 268a90f1a505a00e1eab794e9c1760fdff5592d3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Feb 2025 14:45:09 +0900 Subject: app: improve WAYLAND_DISPLAY correctness This now has identical behaviour as wayland C library. Signed-off-by: Ophestra --- test.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test.nix') diff --git a/test.nix b/test.nix index 5f41d40a..f71d906d 100644 --- a/test.nix +++ b/test.nix @@ -282,6 +282,9 @@ nixosTest { if output != "": raise Exception(f"unexpected output\n{output}") + # Verify graceful failure on bad Wayland display name: + print(machine.fail("sudo -u alice -i fortify -v run --wayland true")) + # Start fortify permissive defaults within Wayland session: fortify('-v run --wayland --dbus notify-send -a "NixOS Tests" "Test notification" "Notification from within sandbox." && touch /tmp/dbus-done') machine.wait_for_file("/tmp/dbus-done") -- cgit v1.3.1