]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-date.c
tests: use a helper function to parse environment and open logging
[thirdparty/systemd.git] / src / test / test-date.c
index 99b6f2eb9ea3a3a6d232bf431b675a4d80e60985..cba51e225c68c3264657081939310b8111171165 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "alloc-util.h"
 #include "string-util.h"
+#include "tests.h"
 #include "util.h"
 
 static void test_should_pass(const char *p) {
@@ -66,9 +67,7 @@ static void test_one_noutc(const char *p) {
 }
 
 int main(int argc, char *argv[]) {
-        log_set_max_level(LOG_DEBUG);
-        log_parse_environment();
-        log_open();
+        test_setup_logging(LOG_DEBUG);
 
         test_one("17:41");
         test_one("18:42:44");