diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-11 22:51:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-11 22:51:49 +0200 |
commit | b2c23da8cea1987a1a329f5a964d3299b7ca7890 (patch) | |
tree | 66f369f148c30ef8d63b32cc33686b0370c6cbf8 /src/test/test-path-lookup.c | |
parent | 8b4305c7354f572fa0390b7580ba30af741aa0a5 (diff) | |
download | systemd-b2c23da8cea1987a1a329f5a964d3299b7ca7890.tar.gz systemd-b2c23da8cea1987a1a329f5a964d3299b7ca7890.tar.bz2 systemd-b2c23da8cea1987a1a329f5a964d3299b7ca7890.zip |
core: rename SystemdRunningAs to ManagerRunningAs
It's primarily just a property of the Manager object after all, and we
try to refer to PID 1 as "manager" instead of "systemd", hence let's to
stick to this here too.
Diffstat (limited to 'src/test/test-path-lookup.c')
-rw-r--r-- | src/test/test-path-lookup.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/test-path-lookup.c b/src/test/test-path-lookup.c index 66b0b99741..aa4bac6cdd 100644 --- a/src/test/test-path-lookup.c +++ b/src/test/test-path-lookup.c @@ -26,7 +26,7 @@ #include "strv.h" #include "rm-rf.h" -static void test_paths(SystemdRunningAs running_as, bool personal) { +static void test_paths(ManagerRunningAs running_as, bool personal) { char template[] = "/tmp/test-path-lookup.XXXXXXX"; _cleanup_lookup_paths_free_ LookupPaths lp = {}; @@ -46,11 +46,11 @@ static void test_paths(SystemdRunningAs running_as, bool personal) { assert_se(rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL) >= 0); } -static void print_generator_paths(SystemdRunningAs running_as) { +static void print_generator_paths(ManagerRunningAs running_as) { _cleanup_strv_free_ char **paths; char **dir; - log_info("Generators dirs (%s):", running_as == SYSTEMD_SYSTEM ? "system" : "user"); + log_info("Generators dirs (%s):", running_as == MANAGER_SYSTEM ? "system" : "user"); paths = generator_paths(running_as); STRV_FOREACH(dir, paths) @@ -62,13 +62,13 @@ int main(int argc, char **argv) { log_parse_environment(); log_open(); - test_paths(SYSTEMD_SYSTEM, false); - test_paths(SYSTEMD_SYSTEM, true); - test_paths(SYSTEMD_USER, false); - test_paths(SYSTEMD_USER, true); + test_paths(MANAGER_SYSTEM, false); + test_paths(MANAGER_SYSTEM, true); + test_paths(MANAGER_USER, false); + test_paths(MANAGER_USER, true); - print_generator_paths(SYSTEMD_SYSTEM); - print_generator_paths(SYSTEMD_USER); + print_generator_paths(MANAGER_SYSTEM); + print_generator_paths(MANAGER_USER); return EXIT_SUCCESS; } |