chiark / gitweb /
Prep v231.2: Send processes the wakeup signal, even if suspending the system failed.
[elogind.git] / src / login / test-login-shared.c
index 4c4275d1245eaf8c00cb75f257e332c3bf002d5f..47d8bf077a6a25bbdd243411bf283083b0f848c8 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "macro.h"
 #include "login-util.h"
+#include "macro.h"
 
+/// Additional includes needed by elogind
+#include "musl_missing.h"
 static void test_session_id_valid(void) {
         assert_se(session_id_valid("c1"));
         assert_se(session_id_valid("1234"));
@@ -32,6 +32,7 @@ static void test_session_id_valid(void) {
 }
 
 int main(int argc, char* argv[]) {
+        elogind_set_program_name(argv[0]);
         log_parse_environment();
         log_open();