From 9bb81334860b5415fc644ac86ca4dbe0102fead3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 3 Jul 2020 10:28:53 +1000 Subject: [PATCH] test: inhibit shutdown and suspend while the tests are running We test lid switch events which are independently handled by Upower. Let's make sure nothing else can tell logind to suspend or shut down while we're running. Signed-off-by: Peter Hutterer --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 365318cd..5393bb07 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1134,7 +1134,7 @@ inhibit(void) &error, &m, "ssss", - "handle-lid-switch:handle-power-key:handle-suspend-key:handle-hibernate-key", + "sleep:shutdown:handle-lid-switch:handle-power-key:handle-suspend-key:handle-hibernate-key", "libinput test-suite runner", "testing in progress", "block");