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.c210 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 Dtest_allocator.h11 MALLOC_FAIL, enumerator
33 #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.c120 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 Darray_test.c171 MALLOC_FAIL); in test_array_creation()
H A Dmap_test.c216 MALLOC_FAIL); in test_map_creation()