chiark / gitweb /
sd-login: if NULL or 0 is passed as first parameter of the sd_xxx functions, work...
[elogind.git] / src / login / test-login.c
index ae041b6a59f70eca0db899749fb4a93943ab0533..4596721060c60d1c3e082f5d01036b4d0eb7d399 100644 (file)
@@ -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);