]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/test-acd.c
tests: use a helper function to parse environment and open logging
[thirdparty/systemd.git] / src / libsystemd-network / test-acd.c
index 079e760996f63c3ff28682c6cbedf19ebb7023a8..302eea2c30fa7fb09e5516d2174a73618f3f4ed6 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "in-addr-util.h"
 #include "netlink-util.h"
+#include "tests.h"
 #include "util.h"
 
 static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) {
@@ -83,9 +84,7 @@ static int test_acd(const char *ifname, const char *address) {
 }
 
 int main(int argc, char *argv[]) {
-        log_set_max_level(LOG_DEBUG);
-        log_parse_environment();
-        log_open();
+        test_setup_logging(LOG_DEBUG);
 
         if (argc == 3)
                 return test_acd(argv[1], argv[2]);