mirror of
https://github.com/systemd/systemd.git
synced 2025-01-18 10:04:04 +03:00
test-path: decrease variable scope
This commit is contained in:
parent
8f8c7801e9
commit
e3643b00a8
@ -346,10 +346,8 @@ int main(int argc, char *argv[]) {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
_cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL;
|
|
||||||
_cleanup_free_ char *test_path = NULL;
|
_cleanup_free_ char *test_path = NULL;
|
||||||
const test_function_t *test = NULL;
|
_cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL;
|
||||||
Manager *m = NULL;
|
|
||||||
|
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|
||||||
@ -359,7 +357,8 @@ int main(int argc, char *argv[]) {
|
|||||||
assert_se(set_unit_path(test_path) >= 0);
|
assert_se(set_unit_path(test_path) >= 0);
|
||||||
assert_se(runtime_dir = setup_fake_runtime_dir());
|
assert_se(runtime_dir = setup_fake_runtime_dir());
|
||||||
|
|
||||||
for (test = tests; test && *test; test++) {
|
for (const test_function_t *test = tests; test && *test; test++) {
|
||||||
|
Manager *m = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
/* We create a clean environment for each test */
|
/* We create a clean environment for each test */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user