1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00
Zbigniew Jędrzejewski-Szmek ce737f46cd test-login: make the test non-manual
test-login.c is largely rewritten to use _cleanup_ and give more meaningful
messages (function names are used instead of creative terms like "active
session", so that when something unexpected is returned, it's much easier to
see what function is responsible).

The monitoring part is only activated if '-m' is passed on the command line.

It runs against the information from /run/systemd/ in the live system, but that
should be OK: logind/sd-login interface is supposed to be stable and both
backwards and forwards compatible.

If not running in a login session, some tests are skipped.

Those two changes together mean that it's possible to run test-login in the
test suite.

Tests for sd_pid_get_{unit,user_unit,slice} are added.
2017-05-18 22:11:58 -04:00
..
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2016-07-04 17:10:23 +02:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2017-01-19 16:54:22 +01:00
2017-02-21 16:28:04 +01:00
2016-10-12 23:02:44 +02:00
2017-02-21 16:28:04 +01:00
2017-01-19 16:54:22 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2017-02-21 16:28:04 +01:00
2016-10-31 08:08:08 -04:00
2016-11-08 10:51:35 +01:00