Searched refs:MALLOC_FAIL (Results 1 – 8 of 8) sorted by relevance
/freebsd/contrib/libcbor/test/ |
H A D | copy_test.c | 210 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_bytestring_chunk_alloc_failure() 242 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_bytestring_second_chunk_alloc_failure() 262 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_string_chunk_alloc_failure() 291 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_string_second_chunk_alloc_failure() 313 MALLOC, MALLOC_FAIL); in test_array_item_alloc_failure() 340 MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_array_second_item_alloc_failure() 367 MALLOC, MALLOC_FAIL); in test_map_key_alloc_failure() 381 MALLOC, MALLOC, MALLOC_FAIL); in test_map_value_alloc_failure() 412 MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_map_second_key_failure() 432 MALLOC, MALLOC_FAIL); in test_tag_alloc_failure()
|
H A D | test_allocator.h | 11 MALLOC_FAIL, enumerator 33 #define WITH_FAILING_MALLOC(block) WITH_MOCK_MALLOC(block, 1, MALLOC_FAIL)
|
H A D | string_test.c | 247 MALLOC_FAIL); in test_string_add_chunk() 251 MALLOC_FAIL); in test_string_add_chunk() 255 MALLOC_FAIL); in test_string_add_chunk()
|
H A D | test_allocator.c | 53 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc()
|
H A D | bytestring_test.c | 331 MALLOC, MALLOC_FAIL); in test_bytestring_creation() 337 MALLOC_FAIL); in test_bytestring_creation()
|
H A D | callbacks_test.c | 120 MALLOC, MALLOC_FAIL); in test_builder_byte_string_callback_append_item_alloc_failure() 254 2, MALLOC, MALLOC_FAIL); in test_builder_string_callback_append_item_alloc_failure()
|
H A D | array_test.c | 171 MALLOC_FAIL); in test_array_creation()
|
H A D | map_test.c | 216 MALLOC_FAIL); in test_map_creation()
|