Lines Matching full:p1
296 void *p1, *p2, *p3; in ZTEST() local
307 p1 = sys_heap_alloc(&heap, 64); in ZTEST()
308 realloc_fill_block(p1, 64); in ZTEST()
309 p2 = sys_heap_realloc(&heap, p1, 128); in ZTEST()
312 zassert_true(p1 == p2, in ZTEST()
314 p1, p2); in ZTEST()
315 zassert_true(realloc_check_block(p2, p1, 64), "data changed"); in ZTEST()
320 p1 = sys_heap_alloc(&heap, 64); in ZTEST()
321 realloc_fill_block(p1, 64); in ZTEST()
324 p3 = sys_heap_realloc(&heap, p1, 128); in ZTEST()
327 zassert_true(p1 != p2, in ZTEST()
328 "Realloc should have moved %p", p1); in ZTEST()
330 zassert_true(realloc_check_block(p3, p1, 64), "data changed"); in ZTEST()
333 p1 = sys_heap_alloc(&heap, 128); in ZTEST()
334 realloc_fill_block(p1, 128); in ZTEST()
335 p2 = sys_heap_realloc(&heap, p1, 64); in ZTEST()
338 zassert_true(p1 == p2, in ZTEST()
340 p1, p2); in ZTEST()
341 zassert_true(realloc_check_block(p2, p1, 64), "data changed"); in ZTEST()
346 p1 = sys_heap_alloc(&heap, 61); in ZTEST()
347 realloc_fill_block(p1, 61); in ZTEST()
350 p3 = sys_heap_realloc(&heap, p1, 64); in ZTEST()
353 zassert_true(p1 == p3, in ZTEST()
355 p1, p3); in ZTEST()
356 zassert_true(realloc_check_block(p3, p1, 61), "data changed"); in ZTEST()
362 p1 = sys_heap_aligned_alloc(&heap, 8, 32); in ZTEST()
363 realloc_fill_block(p1, 32); in ZTEST()
366 p3 = sys_heap_aligned_realloc(&heap, p1, 8, 36); in ZTEST()
369 zassert_true(realloc_check_block(p3, p1, 32), "data changed"); in ZTEST()
373 zassert_true(p1 != p3, in ZTEST()
374 "Realloc should have moved %p", p1); in ZTEST()
377 p1 = sys_heap_aligned_alloc(&heap, 32, 32); in ZTEST()