Lines Matching refs:temp
33 char *temp; in TEST() local
38 temp = strjoina(arg_test_dir ?: "/tmp", "/test-chase.XXXXXX"); in TEST()
39 assert_se(mkdtemp(temp)); in TEST()
41 top = strjoina(temp, "/top"); in TEST()
57 p = strjoina(temp, "/a"); in TEST()
60 p = strjoina(temp, "/b"); in TEST()
63 p = strjoina(temp, "/start"); in TEST()
79 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
82 r = chase_symlinks(pslash, temp, 0, &result, NULL); in TEST()
85 q = strjoina(temp, "/usr"); in TEST()
87 r = chase_symlinks(p, temp, CHASE_NONEXISTENT, &result, NULL); in TEST()
94 r = chase_symlinks(pslash, temp, CHASE_NONEXISTENT, &result, NULL); in TEST()
101 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
106 r = chase_symlinks(pslash, temp, 0, &result, NULL); in TEST()
111 p = strjoina(temp, "/slash"); in TEST()
119 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
121 assert_se(path_equal(result, temp)); in TEST()
126 p = strjoina(temp, "/6dots"); in TEST()
129 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
130 assert_se(r > 0 && path_equal(result, temp)); in TEST()
133 p = strjoina(temp, "/6dotsusr"); in TEST()
136 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
140 p = strjoina(temp, "/top/8dotsusr"); in TEST()
143 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
149 p = strjoina(temp, "/slashslash"); in TEST()
158 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
166 p = strjoina(temp, "/user"); in TEST()
170 q = strjoina(temp, "/user/root"); in TEST()
177 r = chase_symlinks(p, temp, CHASE_SAFE, &result, NULL); in TEST()
224 p = strjoina(temp, "/recursive-symlink"); in TEST()
231 p = strjoina(temp, "/idontexist"); in TEST()
240 p = strjoina(temp, "/idontexist/meneither"); in TEST()
251 p = strjoina(temp, "/idontexist/.."); in TEST()
258 p = strjoina(temp, "/target"); in TEST()
259 q = strjoina(temp, "/top"); in TEST()
261 p = strjoina(temp, "/target/idontexist"); in TEST()
266 p = strjoina(temp, "/priv1"); in TEST()
291 p = strjoina(temp, "/machine-id-test"); in TEST()
312 p = strjoina(temp, "/target"); in TEST()
313 q = strjoina(temp, "/symlink"); in TEST()
325 q = strjoina(temp, "/s1"); in TEST()
327 p = strjoina(temp, "/s2"); in TEST()
340 p = strjoina(temp, "/start"); in TEST()
343 p = strjoina(temp, "/top/dot/dotdota"); in TEST()
349 p = strjoina(temp, "/top/dotdota"); in TEST()
355 p = strjoina(temp, "/top/../a"); in TEST()
361 p = strjoina(temp, "/a"); in TEST()
367 p = strjoina(temp, "/b"); in TEST()
382 p = strjoina("/etc/..", temp, "/self"); in TEST()
391 assert_se(rm_rf(temp, REMOVE_ROOT|REMOVE_PHYSICAL) >= 0); in TEST()
883 char *temp; in TEST() local
885 temp = strjoina(arg_test_dir ?: "/tmp", "/test-rmdir.XXXXXX"); in TEST()
886 assert_se(mkdtemp(temp)); in TEST()
888 test_rmdir_parents_one(temp, "/aaa/../hoge/foo", "/hoge/foo", -EINVAL, NULL, NULL); in TEST()
889 test_rmdir_parents_one(temp, "/aaa/bbb/ccc", "/hoge/../aaa", -EINVAL, NULL, NULL); in TEST()
891 …test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/aaa/bbb/ccc/ddd", 0, "/aaa/bbb/ccc/ddd", "/… in TEST()
892 … test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/aaa/bbb/ccc", 0, "/aaa/bbb/ccc", "/ddd"); in TEST()
893 test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/aaa/bbb", 0, "/aaa/bbb", "/ccc"); in TEST()
894 test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/aaa", 0, "/aaa", "/bbb"); in TEST()
895 test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/", 0, "/", "/aaa"); in TEST()
897 test_rmdir_parents_one(temp, "/aaa/bbb/ccc/ddd/eee", "/aaa/hoge/foo", 0, "/aaa", "/bbb"); in TEST()
898 …test_rmdir_parents_one(temp, "/aaa////bbb/.//ccc//ddd/eee///./.", "///././aaa/.", 0, "/aaa", "/bbb… in TEST()
900 assert_se(rm_rf(temp, REMOVE_ROOT|REMOVE_PHYSICAL) >= 0); in TEST()