!332 LiteTestPrint改成printf带行号函数名

Merge pull request !332 from code4lala/bes_ok
This commit is contained in:
openharmony_ci 2023-11-30 13:07:08 +00:00 committed by Gitee
commit 482091b6b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 9 deletions

View File

@ -112,7 +112,7 @@ static void runSuite##test_suite(void) {\
}\ }\
TEST_INIT(runSuite##test_suite); 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 #ifdef __cplusplus
#if __cplusplus #if __cplusplus

View File

@ -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) void ObtainProductParams(void)
{ {
const char *bootloaderVersion = GetBootloaderVersion(); const char *bootloaderVersion = GetBootloaderVersion();