From: David Tardon Date: Wed, 31 Mar 2021 08:08:31 +0000 (+0200) Subject: test-install-root: create referenced targets X-Git-Tag: v249-rc1~350^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd228002ccedb927b4531a4b7dd9ea7015fdb657;p=thirdparty%2Fsystemd.git test-install-root: create referenced targets --- diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c index bea196c0cec..3649bc232aa 100644 --- a/src/test/test-install-root.c +++ b/src/test/test-install-root.c @@ -1244,6 +1244,12 @@ int main(int argc, char *argv[]) { p = strjoina(root, "/usr/lib/systemd/system-preset/"); assert_se(mkdir_p(p, 0755) >= 0); + p = strjoina(root, "/usr/lib/systemd/system/multi-user.target"); + assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); + + p = strjoina(root, "/usr/lib/systemd/system/graphical.target"); + assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); + test_basic_mask_and_enable(root); test_linked_units(root); test_default(root);