提交 ccc3d1ee 编写于 作者: O openharmony_ci 提交者: Gitee

!104 Resolve failed testcases:ActsKernelIPCTest

Merge pull request !104 from jiyong/master
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "samgr_lite.h" #include "samgr_lite.h"
#define OPER_INTERVAL 200 // 200 ms #define OPER_INTERVAL 200 // 200 ms
#define PRESSURE_BASE (10) #define PRESSURE_BASE 10
enum MessageId { enum MessageId {
MSG_NO, // receiver does not send response MSG_NO, // receiver does not send response
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "samgr_lite.h" #include "samgr_lite.h"
#define OPER_INTERVAL 200 // 200 ms #define OPER_INTERVAL 200 // 200 ms
#define PRESSURE_BASE (10) #define PRESSURE_BASE 10
enum MessageId { enum MessageId {
MSG_NO = 1, // receiver does not send response MSG_NO = 1, // receiver does not send response
......
...@@ -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];
......
...@@ -29,6 +29,7 @@ int IpcSignalTest::mReceivedSignal = 0; ...@@ -29,6 +29,7 @@ int IpcSignalTest::mReceivedSignal = 0;
int IpcSignalTest::mShmid = 0; int IpcSignalTest::mShmid = 0;
siginfo_t IpcSignalTest::mSiginfo; siginfo_t IpcSignalTest::mSiginfo;
// special signal hander for function 'abort' // special signal hander for function 'abort'
void IpcSignalTest::SigAbortHandler(int signum) void IpcSignalTest::SigAbortHandler(int signum)
{ {
...@@ -115,7 +116,7 @@ void IpcSignalTest::DefaultActionTest(const int signum, const bool expectStop, c ...@@ -115,7 +116,7 @@ void IpcSignalTest::DefaultActionTest(const int signum, const bool expectStop, c
} }
} else { // child } else { // child
LOGD("child start"); LOGD("child start");
KeepRun(100); 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.
先完成此消息的编辑!
想要评论请 注册