Home
last modified time | relevance | path

Searched refs:MALLOC_FAIL (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/libcbor/test/
H A Dcopy_test.c330 MALLOC, MALLOC, MALLOC_FAIL); in test_definite_array_item_alloc_failure()
419 MALLOC, MALLOC, MALLOC_FAIL); in test_definite_map_key_alloc_failure()
435 MALLOC, MALLOC, MALLOC, MALLOC_FAIL); in test_definite_map_value_alloc_failure()
530 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_bytestring_chunk_alloc_failure()
562 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_bytestring_second_chunk_alloc_failure()
582 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_string_chunk_alloc_failure()
610 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_string_second_chunk_alloc_failure()
632 MALLOC, MALLOC_FAIL); in test_array_item_alloc_failure()
659 MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_array_second_item_alloc_failure()
686 MALLOC, MALLOC_FAIL); in test_map_key_alloc_failure()
[all …]
H A Dtest_allocator.h13 MALLOC_FAIL, enumerator
37 #define WITH_FAILING_MALLOC(block) WITH_MOCK_MALLOC(block, 1, MALLOC_FAIL)
H A Dstring_test.c247 MALLOC_FAIL); in test_string_creation()
251 MALLOC_FAIL); in test_string_creation()
255 MALLOC_FAIL); in test_string_creation()
H A Dtest_allocator.c53 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc()
H A Dbytestring_test.c331 MALLOC, MALLOC_FAIL); in test_bytestring_creation()
337 MALLOC_FAIL); in test_bytestring_creation()
H A Dcallbacks_test.c123 MALLOC, MALLOC_FAIL); in test_builder_byte_string_callback_append_item_alloc_failure()
264 2, MALLOC, MALLOC_FAIL); in test_builder_string_callback_append_item_alloc_failure()
H A Darray_test.c171 MALLOC_FAIL); in test_array_creation()
H A Dmap_test.c216 MALLOC_FAIL); in test_map_creation()