daandemeyer / rpms / systemd

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