Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a03037ed
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a03037ed
编写于
9月 17, 2021
作者:
O
openharmony_ci
提交者:
Gitee
9月 17, 2021
浏览文件
操作
浏览文件
下载
差异文件
!632 #I49ZPW【communication_lite】【master】XTS_lwip测试用例testSelectMultiClients优化
Merge pull request !632 from wkejing/master
上级
6ea7806a
3ad0ac09
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
6 deletion
+8
-6
communication_lite/lwip_hal/src/lwip_func_test.c
communication_lite/lwip_hal/src/lwip_func_test.c
+2
-1
communication_lite/wifiservice_hal/src/wifiservice_func_test.c
...nication_lite/wifiservice_hal/src/wifiservice_func_test.c
+6
-5
未找到文件。
communication_lite/lwip_hal/src/lwip_func_test.c
浏览文件 @
a03037ed
...
...
@@ -664,6 +664,7 @@ LITE_TEST_CASE(LwipFuncTestSuite, testSelectMultiClients, Function | MediumTest
g_selectTimeout
=
5
;
osThreadId_t
serverTaskId
=
osThreadNew
((
osThreadFunc_t
)
SelectServerTask
,
NULL
,
&
tSelect
);
TEST_ASSERT_NOT_NULL
(
serverTaskId
);
osDelay
(
ONE_SECOND
);
if
(
serverTaskId
==
NULL
)
{
printf
(
"create select server task fail!
\n
"
);
}
else
{
...
...
@@ -1092,4 +1093,4 @@ LITE_TEST_CASE(LwipFuncTestSuite, testInvalidParameter, Function | MediumTest |
TEST_ASSERT_EQUAL_INT
(
0
,
ret
);
}
RUN_TEST_SUITE
(
LwipFuncTestSuite
);
\ No newline at end of file
RUN_TEST_SUITE
(
LwipFuncTestSuite
);
communication_lite/wifiservice_hal/src/wifiservice_func_test.c
浏览文件 @
a03037ed
...
...
@@ -29,6 +29,7 @@
#define LEVEL_FOUR 4
#define DEF_TASK_STACK 2000
#define DEF_TASK_PRIORITY 20
#define TEST_SSID_COUNT 9
static
int
g_apEnableSuccess
=
0
;
static
int
g_staScanSuccess
=
0
;
...
...
@@ -389,9 +390,9 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testConnectDisConnect, Function | Mediu
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testHandleDeviceConfig
,
Function
|
MediumTest
|
Level2
)
{
int
netId
=
0
;
const
char
*
ssid1
=
"XtsTestWifi1"
;
const
char
*
ssid
2
=
"XtsTestWifi2"
;
const
char
*
ssid
3
=
"XtsTestWifi3
"
;
const
char
*
ssid1
=
"XtsTestWifi
0
1"
;
const
char
*
ssid
[
TEST_SSID_COUNT
]
=
{
"XtsTestWifi02"
,
"XtsTestWifi03"
,
"XtsTestWifi04"
,
"XtsTestWifi05"
,
"XtsTestWifi06"
,
"XtsTestWifi07"
,
"XtsTestWifi08"
,
"XtsTestWifi09"
,
"XtsTestWifi10"
}
;
const
char
*
ssid
11
=
"XtsTestWifi11
"
;
const
char
*
info
=
"12345678"
;
unsigned
char
bssid
[
WIFI_MAC_LEN
]
=
{
0xac
,
0x75
,
0x1d
,
0xd8
,
0x55
,
0xc1
};
WifiDeviceConfig
config
=
{
0
};
...
...
@@ -410,7 +411,7 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleDeviceConfig, Function | Medi
for
(
int
i
=
0
;
i
<
WIFI_MAX_CONFIG_SIZE
-
1
;
i
++
)
{
config
.
securityType
=
WIFI_SEC_TYPE_PSK
;
config
.
wapiPskType
=
WIFI_PSK_TYPE_HEX
;
ret
=
strncpy_s
(
config
.
ssid
,
WIFI_MAX_SSID_LEN
,
ssid
2
,
sizeof
(
ssid2
));
ret
=
strncpy_s
(
config
.
ssid
,
WIFI_MAX_SSID_LEN
,
ssid
[
i
],
sizeof
(
ssid
[
i
]
));
TEST_ASSERT_EQUAL_INT
(
WIFI_SUCCESS
,
ret
);
ret
=
strncpy_s
(
config
.
preSharedKey
,
WIFI_MAX_KEY_LEN
,
info
,
strlen
(
info
));
TEST_ASSERT_EQUAL_INT
(
WIFI_SUCCESS
,
ret
);
...
...
@@ -422,7 +423,7 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleDeviceConfig, Function | Medi
}
}
ret
=
strncpy_s
(
config
.
ssid
,
WIFI_MAX_SSID_LEN
,
ssid
3
,
strlen
(
ssid3
));
ret
=
strncpy_s
(
config
.
ssid
,
WIFI_MAX_SSID_LEN
,
ssid
11
,
strlen
(
ssid11
));
TEST_ASSERT_EQUAL_INT
(
WIFI_SUCCESS
,
ret
);
ret
=
strncpy_s
(
config
.
preSharedKey
,
WIFI_MAX_KEY_LEN
,
info
,
strlen
(
info
));
TEST_ASSERT_EQUAL_INT
(
WIFI_SUCCESS
,
ret
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录