test: fix _zalloc ut

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2018-12-19 13:36:52 +01:00 committed by Liam Girdwood
parent bea92dfcc8
commit da9ab07085
3 changed files with 9 additions and 4 deletions

View File

@ -101,3 +101,8 @@ struct ipc_comp_dev *ipc_get_comp(struct ipc *ipc, uint32_t id)
return NULL;
}
void heap_trace_all(int force)
{
(void)force;
}

View File

@ -52,9 +52,9 @@ static void test_audio_pipeline_pipeline_new_memory_allocation(
*in future so expect errors here if any change to pipeline memory
*capabilities or memmory space was made
*/
expect_value(rzalloc, zone, RZONE_RUNTIME);
expect_value(rzalloc, caps, SOF_MEM_CAPS_RAM);
expect_value(rzalloc, bytes, sizeof(struct pipeline));
expect_value(_zalloc, zone, RZONE_RUNTIME);
expect_value(_zalloc, caps, SOF_MEM_CAPS_RAM);
expect_value(_zalloc, bytes, sizeof(struct pipeline));
/*Testing component*/
result = pipeline_new(&pipe_desc, cd);

View File

@ -37,7 +37,7 @@
#include <stdint.h>
#include <cmocka.h>
void *rzalloc(int zone, uint32_t caps, size_t bytes)
void *_zalloc(int zone, uint32_t caps, size_t bytes)
{
check_expected(zone);
check_expected(caps);