teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0309-tests-fix-make-check-failure.patch

803fb7
From 44eb30c33deb46f92d2c67e78a5fb7aa6b21d145 Mon Sep 17 00:00:00 2001
803fb7
From: Michal Sekletar <msekleta@redhat.com>
803fb7
Date: Thu, 28 Apr 2016 16:04:52 +0200
803fb7
Subject: [PATCH] tests: fix make check failure
803fb7
803fb7
Don't call abort() on success. Actually rm_rf_dangerous() returns 0 if
803fb7
all went well.
803fb7
803fb7
Related: #1159308
803fb7
---
803fb7
 src/test/test-install-root.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
803fb7
index 89d91d3d6..667c3748c 100644
803fb7
--- a/src/test/test-install-root.c
803fb7
+++ b/src/test/test-install-root.c
803fb7
@@ -657,7 +657,7 @@ int main(int argc, char *argv[]) {
803fb7
         test_indirect(root);
803fb7
         test_preset_and_list(root);
803fb7
 
803fb7
-        assert_se(rm_rf_dangerous(root, false, true, false));
803fb7
+        assert_se(rm_rf_dangerous(root, false, true, false) == 0);
803fb7
 
803fb7
         return 0;
803fb7
 }