From 6fbcbb927ced1db867cbebab9451d096f768c88c Mon Sep 17 00:00:00 2001
From: mlinlmcc <menglin@huawei.com>
Date: Thu, 25 Mar 2021 12:14:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=90=88=E6=B3=95IP?=
 =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=8C=83=E5=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 communication_lite/lwip_posix/src/ActsLwipTest.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/communication_lite/lwip_posix/src/ActsLwipTest.cpp b/communication_lite/lwip_posix/src/ActsLwipTest.cpp
index 635dab8fb..25c289504 100755
--- a/communication_lite/lwip_posix/src/ActsLwipTest.cpp
+++ b/communication_lite/lwip_posix/src/ActsLwipTest.cpp
@@ -852,9 +852,8 @@ HWTEST_F(ActsLwipTest, testInetPtonIpv4Abnormal, Function | MediumTest | Level2)
 {
     int ret;
     struct in_addr rst = {0};
-    char cpAddrs[10][16] = {"255", "256", "255.0", "255.0.0", "256.0.0.1", "a.a.a.a", "....", "#",
-        "127.0.0.f", "0:0:0:0:0:0:0:1"};
-    for (int i = 0; i < 10; i++) {
+    char cpAddrs[6][16] = {"256.0.0.1", "a.a.a.a", "....", "#", "127.0.0.f", "0:0:0:0:0:0:0:1"};
+    for (int i = 0; i < 6; i++) {
         ret = inet_pton(AF_INET, cpAddrs[i], &rst);
         EXPECT_EQ(0, ret) << "ErrInfo:inet_pton abnormal [" << cpAddrs[i] << "]";
     }
-- 
GitLab