提交 13a365d2 编写于 作者: trioneses360's avatar trioneses360

Signed-off-by:yelin10<yelin10@huawei.com>

Signed-off-by: trioneses360's avataryelin10 <yelin10@huawei.com>
上级 7a5b81aa
......@@ -577,7 +577,7 @@ LITE_TEST_CASE(LwipFuncTestSuite, testUdp, Function | MediumTest | Level2)
socklen_t clnAddrLen = sizeof(clnAddr);
int fd = socket(AF_INET, SOCK_DGRAM, 0);
TEST_ASSERT_NOT_EQUAL(LWIP_TEST_FAIL, ret);
TEST_ASSERT_NOT_EQUAL(LWIP_TEST_FAIL, fd);
srvAddr.sin_family = AF_INET;
srvAddr.sin_addr.s_addr = inet_addr(STACK_IP);
......
......@@ -759,7 +759,7 @@ HWTEST_F(ActsLwipTest, testSocketOpt, Function | MediumTest | Level2)
timeout.tv_sec = 1000;
len = sizeof(timeout);
ret = setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, len);
EXPECT_EQ(0, ret);
EXPECT_NE(0, ret);
memset_s(&timeout, len, 0, len);
ret = getsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, &len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册