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