Lines Matching +full:- +full:1
6 [[case]] # invalid tail-pointer test
14 // change tail-pointer to invalid pointers
17 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
43 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
44 // make sure id 1 == our directory
47 LFS_MKTAG(LFS_TYPE_NAME, 1, strlen("dir_here")), buffer)
48 => LFS_MKTAG(LFS_TYPE_DIR, 1, strlen("dir_here"));
52 {LFS_MKTAG(LFS_TYPE_DIRSTRUCT, 1, 8),
91 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
92 // make sure id 1 == our file
95 LFS_MKTAG(LFS_TYPE_NAME, 1, strlen("file_here")), buffer)
96 => LFS_MKTAG(LFS_TYPE_REG, 1, strlen("file_here"));
100 {LFS_MKTAG(LFS_TYPE_CTZSTRUCT, 1, sizeof(struct lfs_ctz)),
123 [[case]] # invalid pointer in CTZ skip-list test
135 lfs_file_write(&lfs, &file, &c, 1) => 1;
139 // change pointer in CTZ skip-list to be invalid
142 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
143 // make sure id 1 == our file and get our CTZ structure
146 LFS_MKTAG(LFS_TYPE_NAME, 1, strlen("file_here")), buffer)
147 => LFS_MKTAG(LFS_TYPE_REG, 1, strlen("file_here"));
152 LFS_MKTAG(LFS_TYPE_STRUCT, 1, sizeof(struct lfs_ctz)), &ctz)
153 => LFS_MKTAG(LFS_TYPE_CTZSTRUCT, 1, sizeof(struct lfs_ctz));
195 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
196 lfs_fs_prepmove(&lfs, 1, (lfs_block_t [2]){
212 [[case]] # metadata-pair threaded-list loop test
218 // change tail-pointer to point to ourself
221 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
224 (lfs_block_t[2]){0, 1}})) => 0;
231 [[case]] # metadata-pair threaded-list 2-length loop test
244 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
247 LFS_MKTAG(LFS_TYPE_DIRSTRUCT, 1, sizeof(pair)), pair)
248 => LFS_MKTAG(LFS_TYPE_DIRSTRUCT, 1, sizeof(pair));
250 // change tail-pointer to point to root
254 (lfs_block_t[2]){0, 1}})) => 0;
261 [[case]] # metadata-pair threaded-list 1-length child loop test
274 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
277 LFS_MKTAG(LFS_TYPE_DIRSTRUCT, 1, sizeof(pair)), pair)
278 => LFS_MKTAG(LFS_TYPE_DIRSTRUCT, 1, sizeof(pair));
280 // change tail-pointer to point to ourself