]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-execute.c
util: rework rm_rf() logic
[thirdparty/systemd.git] / src / test / test-execute.c
index 428fd3260035cf59b102af2d4f0545a0ec0932d7..c6210aaa87b8aadb7fb107b84da3eadbd75817dc 100644 (file)
@@ -24,6 +24,7 @@
 #include "util.h"
 #include "macro.h"
 #include "mkdir.h"
+#include "rm-rf.h"
 
 typedef void (*test_function_t)(Manager *m);
 
@@ -72,7 +73,7 @@ static void test_exec_workingdirectory(Manager *m) {
 
         test(m, "exec-workingdirectory.service", 0, CLD_EXITED);
 
-        rm_rf_dangerous("/tmp/test-exec_workingdirectory", false, true, false);
+        (void) rm_rf("/tmp/test-exec_workingdirectory", REMOVE_ROOT|REMOVE_PHYSICAL);
 }
 
 static void test_exec_personality(Manager *m) {