ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
698723
From 55cde82204724df756a198da691471f2f3f83d5a Mon Sep 17 00:00:00 2001
698723
From: David Tardon <dtardon@redhat.com>
698723
Date: Wed, 31 Mar 2021 10:08:31 +0200
698723
Subject: [PATCH] test-install-root: create referenced targets
698723
698723
(cherry picked from commit cd228002ccedb927b4531a4b7dd9ea7015fdb657)
698723
698723
Related: #1835351
698723
---
698723
 src/test/test-install-root.c | 6 ++++++
698723
 1 file changed, 6 insertions(+)
698723
698723
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
698723
index fe1ca5b16f..f8b41b04db 100644
698723
--- a/src/test/test-install-root.c
698723
+++ b/src/test/test-install-root.c
698723
@@ -1061,6 +1061,12 @@ int main(int argc, char *argv[]) {
698723
         p = strjoina(root, "/usr/lib/systemd/system-preset/");
698723
         assert_se(mkdir_p(p, 0755) >= 0);
698723
 
698723
+        p = strjoina(root, "/usr/lib/systemd/system/multi-user.target");
698723
+        assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0);
698723
+
698723
+        p = strjoina(root, "/usr/lib/systemd/system/graphical.target");
698723
+        assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0);
698723
+
698723
         test_basic_mask_and_enable(root);
698723
         test_linked_units(root);
698723
         test_default(root);