From a8aefffa09a28396bc6604071a7029d3747e37bd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Mar 2010 11:43:56 +0000 Subject: [PATCH] * Test whether logging into X assigns device ownership properly. svn path=/nixos/trunk/; revision=20486 --- tests/kde4.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/kde4.nix b/tests/kde4.nix index 3b91b738cb7..379863f6a22 100644 --- a/tests/kde4.nix +++ b/tests/kde4.nix @@ -38,6 +38,9 @@ '' $machine->waitForWindow(qr/plasma-desktop/); + # Check that logging in has given the user ownership of devices. + $machine->mustSucceed("getfacl /dev/snd/timer | grep -q alice"); + $machine->execute("su - alice -c 'DISPLAY=:0.0 kwrite /var/log/messages &'"); $machine->execute("su - alice -c 'DISPLAY=:0.0 konqueror http://localhost/ &'");