test: inhibit shutdown and suspend while the tests are running
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 3 Jul 2020 00:28:53 +0000 (10:28 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jul 2020 08:51:33 +0000 (18:51 +1000)
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 <peter.hutterer@who-t.net>
test/litest.c

index 365318cdf284529bff505ad709cee639f325dbed..5393bb075b8ee12b7bda32ac4d65ad077f907963 100644 (file)
@@ -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");