richardphibel / rpms / systemd

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