Lines Matching refs:alloc_buffer_alloc_array
59 TEST_VERIFY ((alloc_buffer_alloc_array (&buf, char, 0) == NULL) in test_empty_array()
69 double *ptr = alloc_buffer_alloc_array (&buf, double, 0); in test_empty_array()
78 struct twelve *ptr = alloc_buffer_alloc_array (&buf, struct twelve, 0); in test_empty_array()
109 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char, count) == NULL); in test_impossible_array()
114 TEST_VERIFY (alloc_buffer_alloc_array (&buf, short, count) == NULL); in test_impossible_array()
119 TEST_VERIFY (alloc_buffer_alloc_array (&buf, double, count) == NULL); in test_impossible_array()
124 TEST_VERIFY (alloc_buffer_alloc_array (&buf, struct twelve, count) in test_impossible_array()
171 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char, count) == NULL); in test_after_failure()
176 TEST_VERIFY (alloc_buffer_alloc_array (&buf, double, count) == NULL); in test_after_failure()
181 TEST_VERIFY (alloc_buffer_alloc_array (&buf, struct twelve, count) in test_after_failure()
220 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char, 1) == NULL); in test_empty()
225 TEST_VERIFY (alloc_buffer_alloc_array (&buf, double, 1) == NULL); in test_empty()
230 TEST_VERIFY (alloc_buffer_alloc_array (&buf, struct twelve, 1) == NULL); in test_empty()
262 char *ptr = alloc_buffer_alloc_array (&buf, char, 1); in test_size_1()
288 TEST_VERIFY (alloc_buffer_alloc_array (&buf, short, 1) == NULL); in test_size_1()
293 TEST_VERIFY (alloc_buffer_alloc_array (&buf, double, 1) == NULL); in test_size_1()
298 TEST_VERIFY (alloc_buffer_alloc_array (&buf, struct twelve, 1) == NULL); in test_size_1()
331 char *ptr = alloc_buffer_alloc_array (&buf, char, 1); in test_size_2()
350 unsigned short *ptr = alloc_buffer_alloc_array (&buf, unsigned short, 1); in test_size_2()
360 char *ptr = alloc_buffer_alloc_array (&buf, char, 2); in test_size_2()
380 short *ptr = alloc_buffer_alloc_array (&buf, short, SIZE / sizeof (short)); in test_misaligned()
393 uint32_t *ptr = alloc_buffer_alloc_array in test_misaligned()
422 double *ptr = alloc_buffer_alloc_array (&buf, double, 2); in test_misaligned()
459 TEST_VERIFY (alloc_buffer_alloc_array (&buf, struct align256, count) in test_large_misaligned()
472 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char, SIZE_MAX) == NULL); in test_large()
479 uintptr_t val = (uintptr_t) alloc_buffer_alloc_array in test_large()
491 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char2, SIZE_MAX - 1) == NULL); in test_large()
496 uintptr_t val = (uintptr_t) alloc_buffer_alloc_array in test_large()
506 TEST_VERIFY (alloc_buffer_alloc_array (&buf, char2, 0) == NULL); in test_large()
515 TEST_VERIFY (alloc_buffer_alloc_array (&buf, short2, SIZE_MAX / 2) in test_large()
521 uintptr_t val = (uintptr_t) alloc_buffer_alloc_array in test_large()