summaryrefslogtreecommitdiff
path: root/src/test/test-install-root.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-19 17:21:18 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-19 17:21:18 +0200
commit0c1792efe422622c3c8a11b70a722147304da4cb (patch)
tree56aa22070f066ff3636625b2e0a70f7ced73450a /src/test/test-install-root.c
parent0c7739039b090a2c1f8c894c0e6eb75fc25663a0 (diff)
parent5cfde70c6e7c8afcd2c9cdb3505301c3e6cde6da (diff)
Merge pull request #3055 from keszybz/preset-fixes
Another bunch of improvements to the installation code
Diffstat (limited to 'src/test/test-install-root.c')
-rw-r--r--src/test/test-install-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
index 998c345a1a..2d73c9743b 100644
--- a/src/test/test-install-root.c
+++ b/src/test/test-install-root.c
@@ -107,7 +107,7 @@ static void test_basic_mask_and_enable(const char *root) {
assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "d.service", &state) >= 0 && state == UNIT_FILE_ENABLED);
/* Enabling it again should succeed but be a NOP */
- assert_se(unit_file_enable(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), false, &changes, &n_changes) == 1);
+ assert_se(unit_file_enable(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), false, &changes, &n_changes) >= 0);
assert_se(n_changes == 0);
unit_file_changes_free(changes, n_changes);
changes = NULL; n_changes = 0;