Lines Matching refs:s
11 uint8_t *s; in test_zero() local
16 s = (uint8_t *)mallocx(sz_min, 0); in test_zero()
17 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure"); in test_zero()
19 for (sz = sallocx(s, 0); sz <= sz_max; in test_zero()
20 sz_prev = sz, sz = sallocx(s, 0)) { in test_zero()
22 assert_u_eq(s[0], MAGIC, in test_zero()
25 assert_u_eq(s[sz_prev-1], MAGIC, in test_zero()
31 assert_u_eq(s[i], 0x0, in test_zero()
34 s[i] = MAGIC; in test_zero()
37 if (xallocx(s, sz+1, 0, 0) == sz) { in test_zero()
38 s = (uint8_t *)rallocx(s, sz+1, 0); in test_zero()
39 assert_ptr_not_null((void *)s, in test_zero()
44 dallocx(s, 0); in test_zero()