From 13a365d25c4da9c5287c725b4c6f88e5f0289d0c Mon Sep 17 00:00:00 2001 From: yelin10 Date: Tue, 8 Feb 2022 15:37:15 +0800 Subject: [PATCH] Signed-off-by:yelin10 Signed-off-by: yelin10 --- communication_lite/lwip_hal/src/lwip_func_test.c | 2 +- communication_lite/lwip_posix/src/ActsLwipTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/communication_lite/lwip_hal/src/lwip_func_test.c b/communication_lite/lwip_hal/src/lwip_func_test.c index 1529e5419..df0fbb608 100755 --- a/communication_lite/lwip_hal/src/lwip_func_test.c +++ b/communication_lite/lwip_hal/src/lwip_func_test.c @@ -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); diff --git a/communication_lite/lwip_posix/src/ActsLwipTest.cpp b/communication_lite/lwip_posix/src/ActsLwipTest.cpp index 31e2033a7..ed9341809 100755 --- a/communication_lite/lwip_posix/src/ActsLwipTest.cpp +++ b/communication_lite/lwip_posix/src/ActsLwipTest.cpp @@ -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); -- GitLab