summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-30 16:42:26 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-30 16:42:26 +0200
commitb9b2b042c5564dfff730eeab43db9ac4bbe4c650 (patch)
treeb3d3b52c0725bea9ce7410f68956f9356050a632
parentecdcbc5e607a324004877de1937026daa7f7b6cc (diff)
sd-login: build test code again
-rw-r--r--src/test-login.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/test-login.c b/src/test-login.c
index 59b46a143e..7d6f08202d 100644
--- a/src/test-login.c
+++ b/src/test-login.c
@@ -149,22 +149,22 @@ int main(int argc, char* argv[]) {
printf("n_uids = %i\n", r);
assert_se(sd_get_uids(NULL) == r);
- /* r = sd_login_monitor_new("session", &m); */
- /* assert_se(r >= 0); */
+ r = sd_login_monitor_new("session", &m);
+ assert_se(r >= 0);
- /* zero(pollfd); */
- /* pollfd.fd = sd_login_monitor_get_fd(m); */
- /* pollfd.events = POLLIN; */
+ zero(pollfd);
+ pollfd.fd = sd_login_monitor_get_fd(m);
+ pollfd.events = POLLIN;
- /* for (n = 0; n < 5; n++) { */
- /* r = poll(&pollfd, 1, -1); */
- /* assert_se(r >= 0); */
+ for (n = 0; n < 5; n++) {
+ r = poll(&pollfd, 1, -1);
+ assert_se(r >= 0);
- /* sd_login_monitor_flush(m); */
- /* printf("Wake!\n"); */
- /* } */
+ sd_login_monitor_flush(m);
+ printf("Wake!\n");
+ }
- /* sd_login_monitor_unref(m); */
+ sd_login_monitor_unref(m);
return 0;
}