提交 58a49083 编写于 作者: O openharmony_ci 提交者: Gitee

!105 Resolve failed testcases

Merge pull request !105 from 南先森/kernel_lite_20210402_3
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
const int MAX_SIGNAL = 31; const int MAX_SIGNAL = 31;
const int MAX_DESCRP_LEN = 32; const int MAX_DESCRP_LEN = 32;
const int KEEP_RUN_TIME = 150;
enum SignalAction {TERMINATE, COREDUMP, IGNORE, STOP, CONTINUE}; enum SignalAction {TERMINATE, COREDUMP, IGNORE, STOP, CONTINUE};
struct SignalNameAction { struct SignalNameAction {
char signame[12]; char signame[12];
......
...@@ -115,7 +115,7 @@ void IpcSignalTest::DefaultActionTest(const int signum, const bool expectStop, c ...@@ -115,7 +115,7 @@ void IpcSignalTest::DefaultActionTest(const int signum, const bool expectStop, c
} }
} else { // child } else { // child
LOGD("child start"); LOGD("child start");
KeepRun(150); KeepRun(KEEP_RUN_TIME);
if (expectStop) { if (expectStop) {
LOG("Child should has been Terminated, but still alive."); LOG("Child should has been Terminated, but still alive.");
exit(1); exit(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册