]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-copy.c
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / test / test-copy.c
index 13b991dbef9d975cbedb15caecc31604550854a7..b17a1c53fe67d3509a02f93ef163bd346ba6d0ea 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Ronny Chevalier
-***/
 
 #include <unistd.h>
 
@@ -17,6 +14,8 @@
 #include "rm-rf.h"
 #include "string-util.h"
 #include "strv.h"
+#include "tests.h"
+#include "tmpfile-util.h"
 #include "user-util.h"
 #include "util.h"
 
@@ -257,7 +256,7 @@ static void test_copy_atomic(void) {
 }
 
 int main(int argc, char *argv[]) {
-        log_set_max_level(LOG_DEBUG);
+        test_setup_logging(LOG_DEBUG);
 
         test_copy_file();
         test_copy_file_fd();