diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-12-10 01:29:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-10 01:29:52 -0500 |
commit | 1ac7a935740662bffd89eefc6655e459181188b1 (patch) | |
tree | 7f846741c7c23d8949ae9abef26dbec34ad1ce47 /src/test | |
parent | 4a5567d5d6ab01974dd089eb8907fecd6aff4fcf (diff) | |
parent | 03fc9c723cfc59467a7fccc305f34273f8564b25 (diff) |
Merge pull request #4835 from poettering/unit-name-printf
Various specifier resolution fixes.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c index b2ea358b8c..4670458ffb 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -409,8 +409,8 @@ static void test_exec_spec_interpolation(Manager *m) { test(m, "exec-spec-interpolation.service", 0, CLD_EXITED); } -static int run_tests(UnitFileScope scope, test_function_t *tests) { - test_function_t *test = NULL; +static int run_tests(UnitFileScope scope, const test_function_t *tests) { + const test_function_t *test = NULL; Manager *m = NULL; int r; @@ -433,7 +433,7 @@ static int run_tests(UnitFileScope scope, test_function_t *tests) { } int main(int argc, char *argv[]) { - test_function_t user_tests[] = { + static const test_function_t user_tests[] = { test_exec_workingdirectory, test_exec_personality, test_exec_ignoresigpipe, @@ -464,7 +464,7 @@ int main(int argc, char *argv[]) { test_exec_spec_interpolation, NULL, }; - test_function_t system_tests[] = { + static const test_function_t system_tests[] = { test_exec_systemcall_system_mode_with_user, NULL, }; |