daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
dd65c9
From 6e3239eed032eaf0c9a6308664a9034e64c98d30 Mon Sep 17 00:00:00 2001
dd65c9
From: Lukas Nykryn <lnykryn@redhat.com>
dd65c9
Date: Fri, 13 Oct 2017 13:29:14 +0200
dd65c9
Subject: [PATCH] test-path-util: force rm_rf
dd65c9
dd65c9
On rhel we don't have tmpfs in /tmp, so simple rm_rf will
dd65c9
refuse to remove the test directory.
dd65c9
dd65c9
RHEL-only
dd65c9
dd65c9
Related: #1472439
dd65c9
---
dd65c9
 src/test/test-path-util.c | 2 +-
dd65c9
 1 file changed, 1 insertion(+), 1 deletion(-)
dd65c9
dd65c9
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
dd65c9
index a4fec07e7..aee1f4e03 100644
dd65c9
--- a/src/test/test-path-util.c
dd65c9
+++ b/src/test/test-path-util.c
dd65c9
@@ -157,7 +157,7 @@ static void test_path_is_mount_point(void) {
dd65c9
         } else
dd65c9
                 printf("Skipping bind mount file test: %m\n");
dd65c9
 
dd65c9
-        assert_se(rm_rf(tmp_dir, false, true, false) == 0);
dd65c9
+        assert_se(rm_rf_dangerous(tmp_dir, false, true, false) == 0);
dd65c9
 }
dd65c9
 
dd65c9
 static void test_find_binary(const char *self, bool local) {