Lines Matching refs:pstr
140 const char *pstr; in num_files() local
152 pstr = testfs_path_init(&path, mp, in num_files()
156 TC_PRINT("opening %s\n", pstr); in num_files()
157 rc = fs_open(file, pstr, FS_O_CREATE | FS_O_RDWR); in num_files()
158 zassert_equal(rc, 0, "open %s failed: %d", pstr, rc); in num_files()
161 zassert_equal(rc, TESTFS_BUFFER_SIZE, "write %s failed: %d", pstr, rc); in num_files()
170 pstr = testfs_path_init(&path, mp, in num_files()
174 TC_PRINT("Close and unlink %s\n", pstr); in num_files()
177 zassert_equal(rc, 0, "close %s failed: %d", pstr, rc); in num_files()
179 rc = fs_unlink(pstr); in num_files()
180 zassert_equal(rc, 0, "unlink %s failed: %d", pstr, rc); in num_files()
190 const char *pstr; in num_dirs() local
202 pstr = testfs_path_init(&path, mp, in num_dirs()
206 TC_PRINT("making and opening directory %s\n", pstr); in num_dirs()
207 rc = fs_mkdir(pstr); in num_dirs()
208 zassert_equal(rc, 0, "mkdir %s failed: %d", pstr, rc); in num_dirs()
210 rc = fs_opendir(dir, pstr); in num_dirs()
220 pstr = testfs_path_init(&path, mp, in num_dirs()
224 TC_PRINT("Close and rmdir %s\n", pstr); in num_dirs()
229 rc = fs_unlink(pstr); in num_dirs()