Lines Matching refs:state1
236 IWFS_FSMDBG_STATE state1, state2; in test_fsm_open_close() local
240 rc = iwfs_fsmdbg_state(&fsm, &state1); in test_fsm_open_close()
242 CU_ASSERT_TRUE((aunit * 8 - state1.lfbklen) * 64 == 2 * aunit); // allocated first 2 pages in test_fsm_open_close()
251 CU_ASSERT_EQUAL(state1.bmlen, state2.bmlen); in test_fsm_open_close()
252 CU_ASSERT_EQUAL(state1.bmoff, state2.bmoff); in test_fsm_open_close()
253 CU_ASSERT_EQUAL(state1.lfbklen, state2.lfbklen); in test_fsm_open_close()
254 CU_ASSERT_EQUAL(state1.lfbkoff, state2.lfbkoff); in test_fsm_open_close()
255 CU_ASSERT_EQUAL(state1.state.block_size, state2.state.block_size); in test_fsm_open_close()
256 CU_ASSERT_EQUAL(state1.state.blocks_num, state2.state.blocks_num); in test_fsm_open_close()
257 CU_ASSERT_EQUAL(state1.state.hdrlen, state2.state.hdrlen); in test_fsm_open_close()
258 CU_ASSERT_EQUAL(state1.state.oflags, state2.state.oflags); in test_fsm_open_close()
259 CU_ASSERT_EQUAL(state1.state.exfile.fsize, state2.state.exfile.fsize); in test_fsm_open_close()
260 CU_ASSERT_EQUAL(state1.state.exfile.fsize, 2 * aunit); in test_fsm_open_close()
277 IWFS_FSMDBG_STATE state1, state2; in test_fsm_uniform_alloc_impl() local
306 rc = iwfs_fsmdbg_state(&fsm, &state1); in test_fsm_uniform_alloc_impl()
308 CU_ASSERT_EQUAL_FATAL(state1.state.exfile.file.ostatus, IWFS_OPEN_NEW); in test_fsm_uniform_alloc_impl()
315 rc = iwfs_fsmdbg_state(&fsm, &state1); in test_fsm_uniform_alloc_impl()
319 CU_ASSERT_EQUAL(state1.bmlen, 8192); in test_fsm_uniform_alloc_impl()
320 CU_ASSERT_EQUAL(state1.bmoff, 2097152); in test_fsm_uniform_alloc_impl()
321 CU_ASSERT_EQUAL(state1.lfbklen, 32632); in test_fsm_uniform_alloc_impl()
322 CU_ASSERT_EQUAL(state1.lfbkoff, 32904); in test_fsm_uniform_alloc_impl()
323 CU_ASSERT_EQUAL(state1.state.blocks_num, 65536); in test_fsm_uniform_alloc_impl()
324 CU_ASSERT_EQUAL(state1.state.free_segments_num, 2); in test_fsm_uniform_alloc_impl()
325 CU_ASSERT_EQUAL(state1.state.avg_alloc_size, 8); in test_fsm_uniform_alloc_impl()
326 CU_ASSERT_EQUAL(state1.state.alloc_dispersion, 0); in test_fsm_uniform_alloc_impl()
344 CU_ASSERT_EQUAL(state1.bmlen, state2.bmlen); in test_fsm_uniform_alloc_impl()
345 CU_ASSERT_EQUAL(state1.bmoff, state2.bmoff); in test_fsm_uniform_alloc_impl()
346 CU_ASSERT_EQUAL(state1.lfbklen, state2.lfbklen); in test_fsm_uniform_alloc_impl()
347 CU_ASSERT_EQUAL(state1.lfbkoff, state2.lfbkoff); in test_fsm_uniform_alloc_impl()
348 CU_ASSERT_EQUAL(state1.state.blocks_num, state2.state.blocks_num); in test_fsm_uniform_alloc_impl()
349 CU_ASSERT_EQUAL(state1.state.free_segments_num, state2.state.free_segments_num); in test_fsm_uniform_alloc_impl()
350 CU_ASSERT_EQUAL(state1.state.avg_alloc_size, state2.state.avg_alloc_size); in test_fsm_uniform_alloc_impl()
351 CU_ASSERT_EQUAL(state1.state.alloc_dispersion, state2.state.alloc_dispersion); in test_fsm_uniform_alloc_impl()
365 rc = iwfs_fsmdbg_state(&fsm, &state1); in test_fsm_uniform_alloc_impl()
369 CU_ASSERT_EQUAL(state1.bmlen, 8192); in test_fsm_uniform_alloc_impl()
370 CU_ASSERT_EQUAL(state1.bmoff, 2097152); in test_fsm_uniform_alloc_impl()
371 CU_ASSERT_EQUAL(state1.lfbklen, 32632); in test_fsm_uniform_alloc_impl()
372 CU_ASSERT_EQUAL(state1.lfbkoff, 32904); in test_fsm_uniform_alloc_impl()
373 CU_ASSERT_EQUAL(state1.state.blocks_num, 65536); in test_fsm_uniform_alloc_impl()
374 CU_ASSERT_EQUAL(state1.state.free_segments_num, 2); in test_fsm_uniform_alloc_impl()
375 CU_ASSERT_EQUAL(state1.state.avg_alloc_size, 8); in test_fsm_uniform_alloc_impl()
376 CU_ASSERT_EQUAL(state1.state.alloc_dispersion, 0); in test_fsm_uniform_alloc_impl()