Lines Matching defs:test_path

41         char **test_path;
55 STRV_FOREACH(test_path, tests_path) {
58 p = strjoin("/tmp/test-path_", *test_path, NULL);
75 static void check_stop_unlink(Manager *m, Unit *unit, const char *test_path, const char *service_name) {
84 assert_se(test_path);
118 (void) rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL);
122 const char *test_path = "/tmp/test-path_exists";
130 assert_se(touch(test_path) >= 0);
132 check_stop_unlink(m, unit, test_path, NULL);
136 const char *test_path = "/tmp/test-path_existsglobFOOBAR";
143 assert_se(touch(test_path) >= 0);
145 check_stop_unlink(m, unit, test_path, NULL);
149 const char *test_path = "/tmp/test-path_changed";
155 assert_se(touch(test_path) >= 0);
160 f = fopen(test_path, "w");
164 check_stop_unlink(m, unit, test_path, NULL);
169 const char *test_path = "/tmp/test-path_modified";
174 assert_se(touch(test_path) >= 0);
179 f = fopen(test_path, "w");
183 check_stop_unlink(m, unit, test_path, NULL);
187 const char *test_path = "/tmp/test-path_unit";
195 assert_se(touch(test_path) >= 0);
197 check_stop_unlink(m, unit, test_path, "path-mycustomunit.service");
201 const char *test_path = "/tmp/test-path_directorynotempty/";
206 assert_se(access(test_path, F_OK) < 0);
212 assert_se(access(test_path, F_OK) < 0);
214 assert_se(mkdir_p(test_path, 0755) >= 0);
215 assert_se(touch(strjoina(test_path, "test_file")) >= 0);
217 check_stop_unlink(m, unit, test_path, NULL);
221 const char *test_path = "/tmp/test-path_makedirectory/";
227 assert_se(access(test_path, F_OK) < 0);
233 assert_se(access(test_path, F_OK) >= 0);
236 assert_se(stat(test_path, &s) >= 0);
242 (void) rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL);