tests/test_allocator.c

changeset 1675
36c0fb2b60b2
parent 1617
d4385f35f8b0
equal deleted inserted replaced
1674:8b0f162ac88e 1675:36c0fb2b60b2
295 CX_TEST_ASSERT(test == NULL); 295 CX_TEST_ASSERT(test == NULL);
296 } 296 }
297 } 297 }
298 298
299 static void *test_allocator_mock_failing_realloc( 299 static void *test_allocator_mock_failing_realloc(
300 cx_attr_unused void *p, 300 CX_UNUSED void *p,
301 cx_attr_unused void *d, 301 CX_UNUSED void *d,
302 cx_attr_unused size_t n 302 CX_UNUSED size_t n
303 ) { 303 ) {
304 return NULL; 304 return NULL;
305 } 305 }
306 306
307 CX_TEST(test_allocator_reallocate_fails) { 307 CX_TEST(test_allocator_reallocate_fails) {

mercurial