Lines Matching refs:path

23             sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
24 lfs_file_open(&lfs, &file, path, LFS_O_CREAT | LFS_O_WRONLY) => 0;
32 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
34 strcmp(info.name, path) => 0;
44 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
45 lfs_remove(&lfs, path) => 0;
55 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
57 strcmp(info.name, path) => 0;
62 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
63 lfs_remove(&lfs, path) => 0;
89 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
90 lfs_file_open(&lfs, &file, path, LFS_O_CREAT | LFS_O_WRONLY) => 0;
98 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
100 strcmp(info.name, path) => 0;
103 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
104 lfs_file_open(&lfs, &file, path, LFS_O_WRONLY) => 0;
114 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
116 strcmp(info.name, path) => 0;
119 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
120 lfs_file_open(&lfs, &file, path, LFS_O_WRONLY) => 0;
130 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
132 strcmp(info.name, path) => 0;
139 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
140 lfs_remove(&lfs, path) => 0;
167 // create random path
178 strcpy(path, full_path);
179 path[2*d+2] = '\0';
180 err = lfs_mkdir(&lfs, path);
185 strcpy(path, full_path);
186 path[2*d+2] = '\0';
187 lfs_stat(&lfs, path, &info) => 0;
188 assert(strcmp(info.name, &path[2*d+1]) == 0);
196 // try to delete path in reverse order, ignore if dir is not empty
198 strcpy(path, full_path);
199 path[2*d+2] = '\0';
200 err = lfs_remove(&lfs, path);
229 // create random path
241 strcpy(path, full_path);
242 path[2*d+2] = '\0';
243 err = lfs_mkdir(&lfs, path);
248 strcpy(path, full_path);
249 path[2*d+2] = '\0';
250 lfs_stat(&lfs, path, &info) => 0;
251 assert(strcmp(info.name, &path[2*d+1]) == 0);
258 // create new random path
264 // if new path does not exist, rename, otherwise destroy
270 strcpy(&path[2*d], &full_path[2*d]);
271 path[2*d+2] = '\0';
272 strcpy(&path[128+2*d], &new_path[2*d]);
273 path[128+2*d+2] = '\0';
274 err = lfs_rename(&lfs, path, path+128);
277 strcpy(path, path+128);
282 strcpy(path, new_path);
283 path[2*d+2] = '\0';
284 lfs_stat(&lfs, path, &info) => 0;
285 assert(strcmp(info.name, &path[2*d+1]) == 0);
291 // try to delete path in reverse order,
294 strcpy(path, full_path);
295 path[2*d+2] = '\0';
296 err = lfs_remove(&lfs, path);