TSG-6704 增加gtest用例

This commit is contained in:
彭宣正
2021-04-28 18:29:29 +08:00
parent 60b4540fb8
commit 4c9a8f89c4
17 changed files with 1297 additions and 126 deletions

View File

@@ -89,15 +89,11 @@ int main(int argc, char *argv[])
buf = (char *)calloc(1, buffer.st_size +1);
#if 0
if (file_to_buffer(file_name, buf, buffer.st_size) == -1)
{
free(buf);
return -1;
}
#else
snprintf(buf, 1024, "this is a test");
#endif
printf("hos_init_instance start ...\n");
hos_instance = hos_get_instance();