Home
last modified time | relevance | path

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

/netbsd-src/external/mit/libcbor/dist/test/
H A Dmemory_allocation_test.c32 int alloc_calls; variable
40 alloc_calls = 0; in set_mock_malloc()
50 assert_int_equal(alloc_calls, alloc_calls_expected); in finalize_mock_malloc()
55 if (alloc_calls >= alloc_calls_expected) { in instrumented_malloc()
59 if (expectations[alloc_calls] == MALLOC) { in instrumented_malloc()
60 alloc_calls++; in instrumented_malloc()
62 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc()
63 alloc_calls++; in instrumented_malloc()
74 if (alloc_calls >= alloc_calls_expected) { in instrumented_realloc()
78 if (expectations[alloc_calls] == REALLOC) { in instrumented_realloc()
[all …]