summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-19 21:33:32 +0200
committerGitHub <noreply@github.com>2016-10-19 21:33:32 +0200
commite6fa8681dcc67cec5ef81da01088e13168cbac42 (patch)
tree25bcc1f06d9891658673d983b921e1274d794685 /src/test
parent88a00ac517f282a0efa61c629031cacb38437855 (diff)
parent59108fbecb831664cb968ad04acb77c55a756eb1 (diff)
Merge pull request #4390 from keszybz/install-specifiers
Various install-related tweaks
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-install-root.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
index db1c928660..1686054d2a 100644
--- a/src/test/test-install-root.c
+++ b/src/test/test-install-root.c
@@ -326,7 +326,9 @@ static void test_default(const char *root) {
assert_se(unit_file_get_default(UNIT_FILE_SYSTEM, root, &def) == -ENOENT);
assert_se(unit_file_set_default(UNIT_FILE_SYSTEM, root, "idontexist.target", false, &changes, &n_changes) == -ENOENT);
- assert_se(n_changes == 0);
+ assert_se(n_changes == 1);
+ assert_se(changes[0].type == -ENOENT);
+ assert_se(streq_ptr(changes[0].path, "idontexist.target"));
unit_file_changes_free(changes, n_changes);
changes = NULL; n_changes = 0;