Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Cal411
Kernel Liteos A
提交
0164461b
K
Kernel Liteos A
项目概览
Cal411
/
Kernel Liteos A
与 Fork 源项目一致
Fork自
OpenHarmony / Kernel Liteos A
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
0164461b
编写于
6月 20, 2022
作者:
Mr-YX
提交者:
Gitee
6月 20, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by: mr-yx <496043997@qq.com>
上级
4acf1e9f
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
testsuites/unittest/extended/signal/full/signal_test_020.cpp
testsuites/unittest/extended/signal/full/signal_test_020.cpp
+15
-15
未找到文件。
testsuites/unittest/extended/signal/full/signal_test_020.cpp
浏览文件 @
0164461b
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include "it_test_signal.h"
#include "it_test_signal.h"
#include "signal.h"
#include "signal.h"
static
void
SigHandler
(
int
sig
)
// źŴ
static
void
SigHandler
(
int
sig
)
// źŴ
{
{
if
(
sig
==
SIGINT
)
{
if
(
sig
==
SIGINT
)
{
printf
(
"SIGINT sig
\n
"
);
printf
(
"SIGINT sig
\n
"
);
...
@@ -74,8 +74,8 @@ static int TestSigSuspend()
...
@@ -74,8 +74,8 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"newset 1 = %x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"newset 1 = %
l
x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"old 1 = %x
\n
"
,
old
.
__bits
[
0
]);
printf
(
"old 1 = %
l
x
\n
"
,
old
.
__bits
[
0
]);
retValue
=
sigemptyset
(
&
newset
);
retValue
=
sigemptyset
(
&
newset
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
...
@@ -89,8 +89,8 @@ static int TestSigSuspend()
...
@@ -89,8 +89,8 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"newset 2 = %x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"newset 2 = %
l
x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"old 2 = %x
\n
"
,
old
.
__bits
[
0
]);
printf
(
"old 2 = %
l
x
\n
"
,
old
.
__bits
[
0
]);
retValue
=
sigemptyset
(
&
newset
);
retValue
=
sigemptyset
(
&
newset
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
...
@@ -105,8 +105,8 @@ static int TestSigSuspend()
...
@@ -105,8 +105,8 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"newset 1 = %x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"newset 1 = %
l
x
\n
"
,
newset
.
__bits
[
0
]);
printf
(
"old 1 = %x
\n
"
,
old
.
__bits
[
0
]);
printf
(
"old 1 = %
l
x
\n
"
,
old
.
__bits
[
0
]);
retValue
=
sigemptyset
(
&
wait
);
retValue
=
sigemptyset
(
&
wait
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
...
@@ -116,7 +116,7 @@ static int TestSigSuspend()
...
@@ -116,7 +116,7 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"wait = %x
\n
"
,
wait
.
__bits
[
0
]);
printf
(
"wait = %
l
x
\n
"
,
wait
.
__bits
[
0
]);
if
(
sigsuspend
(
&
wait
)
!=
-
1
)
{
if
(
sigsuspend
(
&
wait
)
!=
-
1
)
{
printf
(
"sigsuspend error
\n
"
);
printf
(
"sigsuspend error
\n
"
);
...
@@ -126,14 +126,14 @@ static int TestSigSuspend()
...
@@ -126,14 +126,14 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"old 2= %x
\n
"
,
old
.
__bits
[
0
]);
printf
(
"old 2= %
l
x
\n
"
,
old
.
__bits
[
0
]);
sigset_t
pending
;
sigset_t
pending
;
retValue
=
sigemptyset
(
&
pending
);
retValue
=
sigemptyset
(
&
pending
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"pending 1= %x
\n
"
,
pending
.
__bits
[
0
]);
printf
(
"pending 1= %
l
x
\n
"
,
pending
.
__bits
[
0
]);
retValue
=
raise
(
SIGINT
);
retValue
=
raise
(
SIGINT
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
...
@@ -142,7 +142,7 @@ static int TestSigSuspend()
...
@@ -142,7 +142,7 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"pending 2= %x
\n
"
,
pending
.
__bits
[
0
]);
printf
(
"pending 2= %
l
x
\n
"
,
pending
.
__bits
[
0
]);
retValue
=
raise
(
SIGALRM
);
retValue
=
raise
(
SIGALRM
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
...
@@ -152,7 +152,7 @@ static int TestSigSuspend()
...
@@ -152,7 +152,7 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"pending 3= %x
\n
"
,
pending
.
__bits
[
0
]);
printf
(
"pending 3= %
l
x
\n
"
,
pending
.
__bits
[
0
]);
exit
(
0
);
exit
(
0
);
}
}
...
@@ -192,8 +192,8 @@ static int TestSigSuspend()
...
@@ -192,8 +192,8 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"new 1 = %x
\n
"
,
new1
.
__bits
[
0
]);
printf
(
"new 1 = %
l
x
\n
"
,
new1
.
__bits
[
0
]);
printf
(
"old 1 = %x
\n
"
,
old1
.
__bits
[
0
]);
printf
(
"old 1 = %
l
x
\n
"
,
old1
.
__bits
[
0
]);
retValue
=
kill
(
getpid
(),
SIGINT
);
retValue
=
kill
(
getpid
(),
SIGINT
);
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
...
@@ -203,7 +203,7 @@ static int TestSigSuspend()
...
@@ -203,7 +203,7 @@ static int TestSigSuspend()
if
(
retValue
!=
0
)
{
if
(
retValue
!=
0
)
{
exit
(
retValue
);
exit
(
retValue
);
}
}
printf
(
"raise 1 = %x
\n
"
,
new1
.
__bits
[
0
]);
printf
(
"raise 1 = %
l
x
\n
"
,
new1
.
__bits
[
0
]);
exit
(
0
);
exit
(
0
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录