diff options
Diffstat (limited to 'src/login/test-login.c')
-rw-r--r-- | src/login/test-login.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/login/test-login.c b/src/login/test-login.c index ae041b6a59..4596721060 100644 --- a/src/login/test-login.c +++ b/src/login/test-login.c @@ -125,6 +125,11 @@ int main(int argc, char* argv[]) { printf("seats = %s\n", t); free(t); + r = sd_seat_get_active(NULL, &t, NULL); + assert_se(r >= 0); + printf("active session on current seat = %s\n", t); + free(t); + assert_se(sd_get_seats(NULL) == r); r = sd_get_sessions(&sessions); |