summaryrefslogtreecommitdiffstats
path: root/src/test/test-pretty-print.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-10-14 17:36:01 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-10-14 18:36:10 +0200
commit80788a0bd49d9992820b37096d59a69f82e80166 (patch)
treeab5899df987d8487cb73030f8917932ce03312db /src/test/test-pretty-print.c
parentMerge pull request #29544 from yuwata/network-dhcp-bus-command (diff)
downloadsystemd-80788a0bd49d9992820b37096d59a69f82e80166.tar.xz
systemd-80788a0bd49d9992820b37096d59a69f82e80166.zip
shared/pretty-print: drop unused flag
0895e87348e5fc02f50498cad5922eb3eb172323 removed the last (only?) use of CAT_MAIN_FILE_OPTIONAL, except for tests. All callers first check if the main file exists on their own, so this code was effectively dead. I want to repopulate the enum in later commits, so a dummy flag is added to allow the code to compile.
Diffstat (limited to 'src/test/test-pretty-print.c')
-rw-r--r--src/test/test-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-pretty-print.c b/src/test/test-pretty-print.c
index 7c6c6c7ad1..ece1a161e4 100644
--- a/src/test/test-pretty-print.c
+++ b/src/test/test-pretty-print.c
@@ -25,7 +25,7 @@ TEST(terminal_urlify) {
TEST(cat_files) {
assert_se(cat_files("/no/such/file", NULL, 0) == -ENOENT);
- assert_se(cat_files("/no/such/file", NULL, CAT_FLAGS_MAIN_FILE_OPTIONAL) == 0);
+ assert_se(cat_files(NULL, NULL, 0) == 0);
if (access("/etc/fstab", R_OK) >= 0)
assert_se(cat_files("/etc/fstab", STRV_MAKE("/etc/fstab", "/etc/fstab"), 0) == 0);