Lines Matching refs:s
72 char *s; in test_junk() local
85 s = (char *)mallocx(sz_min, 0); in test_junk()
86 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure"); in test_junk()
88 for (sz = sallocx(s, 0); sz <= sz_max; in test_junk()
89 sz_prev = sz, sz = sallocx(s, 0)) { in test_junk()
91 assert_c_eq(s[0], 'a', in test_junk()
94 assert_c_eq(s[sz_prev-1], 'a', in test_junk()
101 assert_c_eq(s[i], 0xa5, in test_junk()
105 s[i] = 'a'; in test_junk()
108 if (xallocx(s, sz+1, 0, 0) == sz) { in test_junk()
109 watch_junking(s); in test_junk()
110 s = (char *)rallocx(s, sz+1, 0); in test_junk()
111 assert_ptr_not_null((void *)s, in test_junk()
119 watch_junking(s); in test_junk()
120 dallocx(s, 0); in test_junk()
212 char *s; in TEST_BEGIN() local
223 s = (char *)mallocx(1, 0); in TEST_BEGIN()
224 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure"); in TEST_BEGIN()
225 s[-1] = 0xbb; in TEST_BEGIN()
226 dallocx(s, 0); in TEST_BEGIN()
232 s = (char *)mallocx(1, 0); in TEST_BEGIN()
233 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure"); in TEST_BEGIN()
234 s[sallocx(s, 0)] = 0xbb; in TEST_BEGIN()
235 dallocx(s, 0); in TEST_BEGIN()