chiark / gitweb /
Prep v228: Add remaining updates from upstream (3/3)
[elogind.git] / src / login / test-login-shared.c
index 2df6029..e9322b6 100644 (file)
@@ -20,7 +20,8 @@
 ***/
 
 #include "macro.h"
-#include "login-shared.h"
+#include "login-util.h"
+#include "musl_missing.h"
 
 static void test_session_id_valid(void) {
         assert_se(session_id_valid("c1"));
@@ -32,6 +33,10 @@ static void test_session_id_valid(void) {
 }
 
 int main(int argc, char* argv[]) {
+        elogind_set_program_name(argv[0]);
+        log_parse_environment();
+        log_open();
+
         test_session_id_valid();
 
         return 0;