提交 04f432b5 编写于 作者: 王科净

【communication_lite】【master】add lwip suites to linux

Signed-off-by: N王科净 <wkejing9687@163.com>
上级 c1524fa7
......@@ -95,6 +95,7 @@ lite_component("acts_component") {
"//test/xts/acts/appexecfwk_lite/appexecfwk_posix:ActsBundleMgrTest",
"//test/xts/acts/aafwk_lite/ability_posix:ActsAbilityMgrTest",
"//test/xts/acts/ai_lite/ai_engine_posix/base:ActsAiEngineTest",
"//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest",
]
}
}
......
......@@ -25,4 +25,10 @@ hcpptest_suite("ActsLwipTest") {
deps = ["//third_party/bounds_checking_function:libsec_shared" ]
cflags = [ "-Wno-error" ]
ldflags = [
"-lstdc++",
"-lm",
"-lpthread",
]
}
......@@ -413,7 +413,8 @@ static int SelectServerForFork(unsigned int timeoutSec)
char dataBuf[50] = {0};
int fds[TEST_FD_COUNT] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
fds[0] = srvFd;
struct timeval timev = {.tv_sec = timeoutSec, .tv_usec = 0};
long timeout = timeoutSec;
struct timeval timev = {.tv_sec = timeout, .tv_usec = 0};
struct sockaddr_in clnAddr = {0};
socklen_t clnAddrLen = sizeof(clnAddr);
while (1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册