summaryrefslogtreecommitdiff
path: root/example/demo
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-04-28 18:29:29 +0800
committer彭宣正 <[email protected]>2021-06-16 11:05:57 +0800
commit4c9a8f89c4f64f1300d221b6eaefa68a34a0a5fe (patch)
tree3572098fec39c50ba1841c575ea1f19f66fe0f58 /example/demo
parent60b4540fb8427325afabb13a7eaf98beb15670b4 (diff)
TSG-6704 增加gtest用例
Diffstat (limited to 'example/demo')
-rw-r--r--example/demo/hos_write_demo.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/example/demo/hos_write_demo.cpp b/example/demo/hos_write_demo.cpp
index 6c9488ba..03fc5ad8 100644
--- a/example/demo/hos_write_demo.cpp
+++ b/example/demo/hos_write_demo.cpp
@@ -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();