]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-fd-util.c
tests: use a helper function to parse environment and open logging
[thirdparty/systemd.git] / src / test / test-fd-util.c
index a04403d7485938626284a3a4cd9e6e4ea9211011..157dc88320789b43c9f4838b191924da3c3d0e9b 100644 (file)
@@ -12,6 +12,7 @@
 #include "random-util.h"
 #include "string-util.h"
 #include "util.h"
+#include "tests.h"
 
 static void test_close_many(void) {
         int fds[3];
@@ -316,7 +317,7 @@ static void test_read_nr_open(void) {
 
 int main(int argc, char *argv[]) {
 
-        log_set_max_level(LOG_DEBUG);
+        test_setup_logging(LOG_DEBUG);
 
         test_close_many();
         test_close_nointr();