use __va_list_tags instead of va_list when autogenerate unit test case
In my code there is a function like this:
static void vhal_log(const char *file, int line, const char *tag, int level,
const char *fmt, va_list args)
the last param args is a va_list type.But when I use builtin rules:Generate Unit Tests to auto generate unit test case for this function, the result like this:
struct __va_list_tag * _args = 0 ;
{
/* Tested function call */
vhal_log(_file, _line, _tag, _level, _fmt, _args);
/* Post-condition check */
CPPTEST_POST_CONDITION_PTR("struct __va_list_tag * _args ", ( _args ));
}
In test case,the last param type is defined to "struct __va_list_tag *" .I wonder why the param type is changed?It is obviously that __va_list_tag * not match with va_list and the case can not be compilered successfully.