diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-09 16:15:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-09 19:43:43 +0200 |
commit | 638cece45da5a6e5fc7c410b619f35abb8df3ec7 (patch) | |
tree | a7df24658c7617745fcd5628202ed48773887fed /src/analyze | |
parent | c52b19d65fa9e701d8f1625ef2d26bbd5b4fa3fe (diff) | |
download | systemd-638cece45da5a6e5fc7c410b619f35abb8df3ec7.tar.gz |
core: clean up test run flags
Let's make them typesafe, and let's add a nice macro helper for checking
if we are in a test run, which should make testing for this much easier
to read for most cases.
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze-verify.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c index ed369532d4..d2f9e5528e 100644 --- a/src/analyze/analyze-verify.c +++ b/src/analyze/analyze-verify.c @@ -225,9 +225,10 @@ static int verify_unit(Unit *u, bool check_man) { } int verify_units(char **filenames, UnitFileScope scope, bool check_man, bool run_generators) { - const uint8_t flags = MANAGER_TEST_RUN_BASIC | - MANAGER_TEST_RUN_ENV_GENERATORS | - run_generators * MANAGER_TEST_RUN_GENERATORS; + const ManagerTestRunFlags flags = + MANAGER_TEST_RUN_BASIC | + MANAGER_TEST_RUN_ENV_GENERATORS | + run_generators * MANAGER_TEST_RUN_GENERATORS; _cleanup_(manager_freep) Manager *m = NULL; Unit *units[strv_length(filenames)]; |