]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/test-login-shared.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / login / test-login-shared.c
index 2df60292bf2998aa035f7cc923f4b65ab47f4c2c..bf08b6ee9fbed56bf31e5ecabd5b44d6baf2bcc8 100644 (file)
@@ -1,5 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -19,8 +18,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include "login-util.h"
 #include "macro.h"
-#include "login-shared.h"
 
 static void test_session_id_valid(void) {
         assert_se(session_id_valid("c1"));
@@ -32,6 +31,9 @@ static void test_session_id_valid(void) {
 }
 
 int main(int argc, char* argv[]) {
+        log_parse_environment();
+        log_open();
+
         test_session_id_valid();
 
         return 0;