Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
73a9587f
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
461
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
73a9587f
编写于
10月 27, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1046 Fix : 内核告警清理
Merge pull request !1046 from yinjiaming/fix
上级
cbd03bd7
8d55bb1d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
8 deletion
+9
-8
net/lwip-2.1/enhancement/src/api_shell.c
net/lwip-2.1/enhancement/src/api_shell.c
+1
-1
testsuites/unittest/basic/mem/shm/full/shm_test_002.cpp
testsuites/unittest/basic/mem/shm/full/shm_test_002.cpp
+6
-5
testsuites/unittest/libc/time/clock/lt_clock_test.h
testsuites/unittest/libc/time/clock/lt_clock_test.h
+2
-2
未找到文件。
net/lwip-2.1/enhancement/src/api_shell.c
浏览文件 @
73a9587f
...
...
@@ -356,7 +356,7 @@ int print_netif(struct netif *netif, char *print_buf, unsigned int buf_len)
buf_len
-=
(
unsigned
int
)
ret
;
}
ret
=
snprintf_s
(
tmp
,
buf_len
,
(
buf_len
-
1
),
" %s
\n
"
,
ret
=
snprintf_s
(
tmp
,
buf_len
,
(
buf_len
-
1
),
" %s
\n
"
,
(
netif
->
flags
&
NETIF_FLAG_LINK_UP
)
?
"Link UP"
:
"Link Down"
);
if
((
ret
<=
0
)
||
((
unsigned
int
)
ret
>=
buf_len
))
goto
out
;
...
...
testsuites/unittest/basic/mem/shm/full/shm_test_002.cpp
浏览文件 @
73a9587f
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-202
1
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-202
2
Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
...
...
@@ -31,6 +31,7 @@
#include "it_test_shm.h"
#define SHMID_MAX 192
#define SHM_FLAG 0777
static
int
Testcase
(
VOID
)
{
...
...
@@ -44,24 +45,24 @@ static int Testcase(VOID)
ICUNIT_ASSERT_EQUAL
(
ret
,
SHMID_MAX
,
ret
);
leftShmIds
=
SHMID_MAX
-
shmInfo
.
used_ids
;
shmid
[
0
]
=
shmget
((
key_t
)
0x1234
,
PAGE_SIZE
,
0777
|
IPC_CREAT
);
shmid
[
0
]
=
shmget
((
key_t
)
0x1234
,
PAGE_SIZE
,
SHM_FLAG
|
IPC_CREAT
);
// 0x1234: a key used to create shared memory
ICUNIT_ASSERT_NOT_EQUAL
(
shmid
[
0
],
-
1
,
shmid
[
0
]);
ret
=
shmctl
(
shmid
[
0
],
IPC_RMID
,
NULL
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
shmid
[
0
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
0777
|
IPC_CREAT
);
shmid
[
0
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
SHM_FLAG
|
IPC_CREAT
);
ICUNIT_ASSERT_NOT_EQUAL
(
shmid
[
0
],
-
1
,
shmid
[
0
]);
ret
=
shmctl
(
shmid
[
0
],
IPC_RMID
,
NULL
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
for
(
i
=
0
;
i
<
leftShmIds
;
i
++
)
{
shmid
[
i
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
0777
|
IPC_CREAT
);
shmid
[
i
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
SHM_FLAG
|
IPC_CREAT
);
ICUNIT_ASSERT_NOT_EQUAL
(
shmid
[
i
],
-
1
,
shmid
[
i
]);
}
shmid
[
leftShmIds
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
0777
|
IPC_CREAT
);
shmid
[
leftShmIds
]
=
shmget
(
IPC_PRIVATE
,
PAGE_SIZE
,
SHM_FLAG
|
IPC_CREAT
);
ICUNIT_ASSERT_EQUAL
(
shmid
[
leftShmIds
],
-
1
,
shmid
[
leftShmIds
]);
for
(
i
=
0
;
i
<
leftShmIds
;
i
++
)
{
...
...
testsuites/unittest/libc/time/clock/lt_clock_test.h
浏览文件 @
73a9587f
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-202
1
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-202
2
Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
...
...
@@ -41,7 +41,7 @@
#define CLOCK_RES_NSEC 1000
#define CLOCK_COARSE_RES_SEC 0
#define CLOCK_COARSE_RES_NSEC 1000000
#define CLOCK_GET_CPU_CLOCKID(pid) ((-
pid
- 1) * 8U + 2)
#define CLOCK_GET_CPU_CLOCKID(pid) ((-
(pid)
- 1) * 8U + 2)
void
ClockTestSmoke
(
void
);
void
ClockTest001
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录