You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is when the mock is generated, there is a weird function called UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY_ARRAY generated (which doesn't exist in Unity), because of void *const ptrs[] argument:
It's processing the brackets and the pointer separately, and using each to specify that you're talking to an array... so it's decided it's and array of array (correctly) but (incorrectly) not collapsed it down to a single pointer as it does other things.
The handling for arrays and pointers should be getting major improvements soon. this is one of the things to be addressed.
Hi,
I am trying to mock a function from OpenVX:
vx_image vxCreateImageFromHandle(vx_context context, vx_df_image color, const vx_imagepatch_addressing_t addrs[], void *const ptrs[], vx_enum memory_type);
The problem is when the mock is generated, there is a weird function called UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY_ARRAY generated (which doesn't exist in Unity), because of
void *const ptrs[]
argument:Anyone knows why is this happening, and if there is a solution for this?
The text was updated successfully, but these errors were encountered: