Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
24aa6858
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
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看板
提交
24aa6858
编写于
4月 15, 2023
作者:
”
”景涛“
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix some typo errors
Signed-off-by:
N
”景涛“
<
jingtao3@hust.edu.cn
>
上级
5fb9165c
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
17 addition
and
17 deletion
+17
-17
testsuites/unittest/extended/signal/full/It_ipc_pipe_002.cpp
testsuites/unittest/extended/signal/full/It_ipc_pipe_002.cpp
+1
-1
testsuites/unittest/extended/signal/full/It_ipc_pipe_003.cpp
testsuites/unittest/extended/signal/full/It_ipc_pipe_003.cpp
+1
-1
testsuites/unittest/extended/signal/full/It_ipc_sigaction_001.cpp
...es/unittest/extended/signal/full/It_ipc_sigaction_001.cpp
+1
-1
testsuites/unittest/extended/signal/full/signal_test_001.cpp
testsuites/unittest/extended/signal/full/signal_test_001.cpp
+6
-6
testsuites/unittest/extended/signal/full/signal_test_007.cpp
testsuites/unittest/extended/signal/full/signal_test_007.cpp
+1
-1
testsuites/unittest/extended/signal/full/signal_test_008.cpp
testsuites/unittest/extended/signal/full/signal_test_008.cpp
+1
-1
testsuites/unittest/extended/signal/full/signal_test_025.cpp
testsuites/unittest/extended/signal/full/signal_test_025.cpp
+1
-1
testsuites/unittest/extended/signal/smoke/signal_test_042.cpp
...suites/unittest/extended/signal/smoke/signal_test_042.cpp
+4
-4
testsuites/unittest/process/basic/pthread/smoke/pthread_test_011.cpp
...unittest/process/basic/pthread/smoke/pthread_test_011.cpp
+1
-1
未找到文件。
testsuites/unittest/extended/signal/full/It_ipc_pipe_002.cpp
浏览文件 @
24aa6858
...
...
@@ -53,7 +53,7 @@ static UINT32 Testcase(VOID)
ret
=
write
(
pipeFd
[
1
],
"hello world"
,
12
);
// 12, "hello world" length and '\0'
printf
(
"write first status: %d
\n
"
,
ret
);
if
(
ret
!=
12
)
{
// 12, "hello world" length and '\0'
exit
(
11
);
// 11, the value of son process unexpect exit, convenient to debug
exit
(
11
);
// 11, the value of son process unexpect
ed
exit, convenient to debug
}
*
sharedflag
=
1
;
close
(
pipeFd
[
1
]);
...
...
testsuites/unittest/extended/signal/full/It_ipc_pipe_003.cpp
浏览文件 @
24aa6858
...
...
@@ -55,7 +55,7 @@ static UINT32 Testcase(VOID)
ret
=
write
(
pipeFd
[
1
],
"Hello world"
,
TAR_STR_LEN
);
printf
(
"write first status: %d
\n
"
,
ret
);
if
(
ret
!=
TAR_STR_LEN
)
{
exit
(
11
);
// 11, the value of son process unexpect exit, convenient to debug
exit
(
11
);
// 11, the value of son process unexpect
ed
exit, convenient to debug
}
*
sharedflag
=
1
;
close
(
pipeFd
[
1
]);
...
...
testsuites/unittest/extended/signal/full/It_ipc_sigaction_001.cpp
浏览文件 @
24aa6858
...
...
@@ -69,7 +69,7 @@ static UINT32 Testcase(VOID)
ret
=
sigaction
(
SIGCHLD
,
&
oldact
,
NULL
);
if
(
ret
==
-
1
)
{
exit
(
6
);
// 6, the value of son process unexpect exit, convenient to debug
exit
(
6
);
// 6, the value of son process unexpect
ed
exit, convenient to debug
}
sleep
(
1
);
printf
(
"---son--cnt check----%d--------
\n
"
,
g_actionCnt1
);
...
...
testsuites/unittest/extended/signal/full/signal_test_001.cpp
浏览文件 @
24aa6858
...
...
@@ -90,31 +90,31 @@ static int TestCase(void)
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
}
ret
=
kill
(
10
,
31
);
// 10, kill process pid; 31, sigal.
ret
=
kill
(
10
,
31
);
// 10, kill process pid; 31, sig
n
al.
if
(
retValue
!=
-
1
||
errno
!=
EINVAL
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
}
ret
=
kill
(
10
,
32
);
// 10, kill process pid; 32, sigal.
ret
=
kill
(
10
,
32
);
// 10, kill process pid; 32, sig
n
al.
if
(
retValue
!=
-
1
||
errno
!=
EINVAL
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
}
ret
=
kill
(
2
,
32
);
// 2, kill process pid; 32, sigal.
ret
=
kill
(
2
,
32
);
// 2, kill process pid; 32, sig
n
al.
if
(
retValue
!=
-
1
||
errno
!=
EINVAL
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
}
printf
(
"test EPERM begin
\n
"
);
ret
=
kill
(
2
,
5
);
// 2, kill process pid; 5, sigal.
ret
=
kill
(
2
,
5
);
// 2, kill process pid; 5, sig
n
al.
if
(
retValue
!=
-
1
||
errno
!=
EPERM
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
}
ret
=
kill
(
3
,
5
);
// 3, kill process pid; 5, sigal.
ret
=
kill
(
3
,
5
);
// 3, kill process pid; 5, sig
n
al.
if
(
retValue
!=
-
1
||
errno
!=
EPERM
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
...
...
@@ -126,7 +126,7 @@ static int TestCase(void)
exit
(
-
1
);
}
ret
=
kill
(
1
,
5
);
// 5, kill sigal num .
ret
=
kill
(
1
,
5
);
// 5, kill sig
n
al num .
if
(
retValue
!=
-
1
||
errno
!=
EPERM
)
{
printf
(
"errline = %d
\n
"
,
__LINE__
);
exit
(
-
1
);
...
...
testsuites/unittest/extended/signal/full/signal_test_007.cpp
浏览文件 @
24aa6858
...
...
@@ -40,7 +40,7 @@ static void SigChildResponse(int signo)
wait
(
nullptr
);
}
/* Register SIGCHLD, through signal to restore the child mem
e
ry */
/* Register SIGCHLD, through signal to restore the child mem
o
ry */
static
int
TestSigKillResp
()
{
void
(
*
ret
)(
int
)
=
nullptr
;
...
...
testsuites/unittest/extended/signal/full/signal_test_008.cpp
浏览文件 @
24aa6858
...
...
@@ -38,7 +38,7 @@ void SigChildResponse(int signo)
wait
(
nullptr
);
}
/* Register SIGCHLD, through signal to restore the child mem
e
ry */
/* Register SIGCHLD, through signal to restore the child mem
o
ry */
static
int
TestSigKillWaitFromSigChild
()
{
void
(
*
ret
)(
int
);
...
...
testsuites/unittest/extended/signal/full/signal_test_025.cpp
浏览文件 @
24aa6858
...
...
@@ -88,7 +88,7 @@ static int TestBlock()
printf
(
"
\n\n
"
);
printf
(
"Signal Pause(2)
\n
"
);
printf
(
"To test whether pause can relese the signal
\n
"
);
printf
(
"To test whether pause can rele
a
se the signal
\n
"
);
alarm
(
clock
);
retValue
=
sighold
(
sig
);
if
(
retValue
!=
0
)
{
...
...
testsuites/unittest/extended/signal/smoke/signal_test_042.cpp
浏览文件 @
24aa6858
...
...
@@ -67,7 +67,7 @@ static UINT32 TestCase()
sigemptyset
(
&
set
);
sigprocmask
(
SIG_SETMASK
,
&
set
,
NULL
);
printf
(
"check invlid sigset ...
\n
"
);
printf
(
"check inv
a
lid sigset ...
\n
"
);
int
rt
=
sigaddset
(
&
set
,
0
);
ICUNIT_ASSERT_EQUAL
(
rt
,
-
1
,
rt
);
ICUNIT_ASSERT_EQUAL
(
errno
,
EINVAL
,
errno
);
...
...
@@ -79,19 +79,19 @@ static UINT32 TestCase()
siginfo_t
si
;
time1
.
tv_sec
=
-
1
;
printf
(
"check invlid timespec: tv_sec=-1 ...
\n
"
);
printf
(
"check inv
a
lid timespec: tv_sec=-1 ...
\n
"
);
ret
=
SigtimedwaitFailTest
(
&
set
,
&
si
,
&
time1
,
EINVAL
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
time1
.
tv_sec
=
1
;
time1
.
tv_nsec
=
-
1
;
printf
(
"check invlid timespec: tv_nsec=-1 ...
\n
"
);
printf
(
"check inv
a
lid timespec: tv_nsec=-1 ...
\n
"
);
ret
=
SigtimedwaitFailTest
(
&
set
,
&
si
,
&
time1
,
EINVAL
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
time1
.
tv_sec
=
1
;
time1
.
tv_nsec
=
1000
*
1000
*
1000
+
1
;
// 1000, set the nsec of time.
printf
(
"check invlid timespec: tv_nsec overflow ...
\n
"
);
printf
(
"check inv
a
lid timespec: tv_nsec overflow ...
\n
"
);
ret
=
SigtimedwaitFailTest
(
&
set
,
&
si
,
&
time1
,
EINVAL
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
...
...
testsuites/unittest/process/basic/pthread/smoke/pthread_test_011.cpp
浏览文件 @
24aa6858
...
...
@@ -46,7 +46,7 @@ void child1(void)
while
(
1
)
{
ret
=
pthread_getschedparam
(
pthread
,
&
newPolicy
,
&
param
);
if
(
ret
!=
0
)
{
printf
(
"pthread_getschedparam failed ! %d erro: %d
\n
"
,
__LINE__
,
errno
);
printf
(
"pthread_getschedparam failed ! %d erro
r
: %d
\n
"
,
__LINE__
,
errno
);
exit
(
255
);
// 255, set a special exit code.
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录