diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-02-15 04:56:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-15 04:56:10 +0100 |
commit | fc8af9ff3fbbbf21bf26f21d2eb100f26afc201a (patch) | |
tree | 6fcdbdd6aa92862ed5b256b1bc6411809c7cfde9 /src/login/test-login.c | |
parent | 068665b6fd9839f27bcace7e8f56c0baa6935272 (diff) |
login: introduce sd_session_get_display()
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); |