]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/timesync/test-timesync.c
update TODO
[thirdparty/systemd.git] / src / timesync / test-timesync.c
index 2bf484f121e0bfc8134f4ce66c3c9aa92bc33af0..bd03a1dd90aca6b37fa7494c56ec395c2d39e577 100644 (file)
@@ -1,15 +1,11 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  This file is part of systemd.
-
-  Copyright 2017 Zbigniew JÄ™drzejewski-Szmek
-***/
 
 /* Some unit tests for the helper functions in timesyncd. */
 
 #include "log.h"
 #include "macro.h"
 #include "timesyncd-conf.h"
+#include "tests.h"
 
 static void test_manager_parse_string(void) {
         /* Make sure that NTP_SERVERS is configured to something
@@ -30,8 +26,7 @@ static void test_manager_parse_string(void) {
 }
 
 int main(int argc, char **argv) {
-        log_set_max_level(LOG_DEBUG);
-        log_parse_environment();
+        test_setup_logging(LOG_DEBUG);
 
         test_manager_parse_string();