ryantimwilson / rpms / systemd

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