mirror of
https://gitee.com/openharmony/xts_tools
synced 2025-02-17 07:37:39 +00:00
!1 LiteTestPrint改成printf带行号函数名
Merge pull request !1 from code4lala/LiteTestPrint_printf_with_function_line Signed-off-by: code4lala <fengziteng2@huawei.com>
This commit is contained in:
parent
4e241ae171
commit
83d6da3f84
@ -112,7 +112,7 @@ static void runSuite##test_suite(void) {\
|
||||
}\
|
||||
TEST_INIT(runSuite##test_suite);
|
||||
|
||||
void LiteTestPrint(const char *fmt, ...);
|
||||
#define LiteTestPrint(fmt, arg...) printf("%s:%u[%s] " fmt "\n", __FILE__, __LINE__, __func__, ##arg)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
|
@ -196,14 +196,6 @@ static void RunTestSuite(const char* suite_name)
|
||||
}
|
||||
}
|
||||
|
||||
void LiteTestPrint(const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
printf(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void ObtainProductParams(void)
|
||||
{
|
||||
const char *bootloaderVersion = GetBootloaderVersion();
|
||||
|
Loading…
x
Reference in New Issue
Block a user