diff options
Diffstat (limited to 'src/login/test-login.c')
-rw-r--r-- | src/login/test-login.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/login/test-login.c b/src/login/test-login.c index 2aaa31f22f..dd8404285b 100644 --- a/src/login/test-login.c +++ b/src/login/test-login.c @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) { int r, k; uid_t u, u2; - char *seat, *type, *class; + char *seat, *type, *class, *display; char *session; char *state; char *session2; @@ -83,6 +83,10 @@ int main(int argc, char* argv[]) { printf("class = %s\n", class); free(class); + assert_se(sd_session_get_display(session, &display) >= 0); + printf("display = %s\n", display); + free(display); + assert_se(sd_session_get_seat(session, &seat) >= 0); printf("seat = %s\n", seat); |