* When switching between virtual terminals, check whether
ConsoleKit/udev change device ownership to the logged in user. svn path=/nixos/trunk/; revision=20485
This commit is contained in:
parent
358f3cd79c
commit
89d599bab1
1 changed files with 15 additions and 4 deletions
|
@ -18,9 +18,6 @@
|
|||
$machine->waitUntilSucceeds("pgrep -u alice bash");
|
||||
$machine->sendChars("touch done\n");
|
||||
$machine->waitForFile("/home/alice/done");
|
||||
$machine->sendChars("exit\n");
|
||||
$machine->waitUntilFails("pgrep -u alice bash");
|
||||
$machine->screenshot("mingetty");
|
||||
|
||||
# Check whether switching VTs works.
|
||||
$machine->sendKeys("alt-f10");
|
||||
|
@ -28,8 +25,22 @@
|
|||
$machine->execute("sleep 2"); # allow fbcondecor to catch up (not important)
|
||||
$machine->screenshot("syslog");
|
||||
|
||||
# Check whether ConsoleKit/udev gives and removes device
|
||||
# ownership as needed.
|
||||
$machine->mustSucceed("chvt 1");
|
||||
$machine->execute("sleep 1"); # urgh
|
||||
$machine->mustSucceed("getfacl /dev/snd/timer | grep -q alice");
|
||||
$machine->mustSucceed("chvt 2");
|
||||
$machine->execute("sleep 1"); # urgh
|
||||
$machine->mustFail("getfacl /dev/snd/timer | grep -q alice");
|
||||
|
||||
# Log out.
|
||||
$machine->mustSucceed("chvt 1");
|
||||
$machine->sendChars("exit\n");
|
||||
$machine->waitUntilFails("pgrep -u alice bash");
|
||||
$machine->screenshot("mingetty");
|
||||
|
||||
# Check whether ctrl-alt-delete works.
|
||||
$machine->sendKeys("alt-f1");
|
||||
$machine->sendKeys("ctrl-alt-delete");
|
||||
$machine->waitForShutdown;
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue