@@ -62,7 +62,7 @@ void malloc_compliance_test(umf_memory_pool_handle_t hPool) {
62
62
// For compatibility, on 64-bit systems malloc should align to 16 bytes
63
63
size_t alignment =
64
64
(sizeof (intptr_t ) > 4 && alloc_ptr_size[i] > 8 ) ? 16 : 8 ;
65
- ASSERT_NE (is_aligned (alloc_ptr[i], alignment), 0 )
65
+ ASSERT_NE (addressIsAligned (alloc_ptr[i], alignment), 0 )
66
66
<< " Malloc should return pointer that is suitably aligned so that "
67
67
" it may be assigned to a pointer to any type of object" ;
68
68
#endif
@@ -74,7 +74,8 @@ void malloc_compliance_test(umf_memory_pool_handle_t hPool) {
74
74
}
75
75
for (int i = 0 ; i < ITERATIONS; i++) {
76
76
ASSERT_NE (
77
- is_filled_with_char (alloc_ptr[i], alloc_ptr_size[i], i % 0xFF ), 0 )
77
+ bufferIsFilledWithChar (alloc_ptr[i], alloc_ptr_size[i], i % 0xFF ),
78
+ 0 )
78
79
<< " Object returned by malloc is not disjoined from others" ;
79
80
memset (alloc_ptr[i], 1 , alloc_ptr_size[i]);
80
81
}
@@ -93,7 +94,7 @@ void calloc_compliance_test(umf_memory_pool_handle_t hPool) {
93
94
94
95
ASSERT_NE (alloc_ptr[i], nullptr )
95
96
<< " calloc returned NULL, couldn't allocate much memory" ;
96
- ASSERT_NE (is_filled_with_char (alloc_ptr[i], alloc_size, 0 ), 0 )
97
+ ASSERT_NE (bufferIsFilledWithChar (alloc_ptr[i], alloc_size, 0 ), 0 )
97
98
<< " Memory returned by calloc was not zeroed" ;
98
99
}
99
100
free_memory (hPool, alloc_ptr);
@@ -131,7 +132,8 @@ void realloc_compliance_test(umf_memory_pool_handle_t hPool) {
131
132
132
133
// Reallocate with 100 byte size increasing
133
134
realloc_ptr[i] = umfPoolRealloc (hPool, malloc_obj, alloc_size + 100 );
134
- ASSERT_NE (is_same_content (realloc_ptr[i], saved_obj, alloc_size), 0 )
135
+ ASSERT_NE (buffersHaveSameContent (realloc_ptr[i], saved_obj, alloc_size),
136
+ 0 )
135
137
<< " Content after realloc should remain the same" ;
136
138
137
139
// Delete saved memory
0 commit comments