提交 8970b0f8 编写于 作者: R root

Resolve failed testcases:ActsKernelIPCTest

Change-Id: I77688cfd09f49e88a93c785d874072bc826acf4f
上级 0c656fcf
......@@ -21,6 +21,7 @@
const int MAX_SIGNAL = 31;
const int MAX_DESCRP_LEN = 32;
const int KEEP_RUN_TIME = 150;
enum SignalAction {TERMINATE, COREDUMP, IGNORE, STOP, CONTINUE};
struct SignalNameAction {
char signame[12];
......
......@@ -29,6 +29,7 @@ int IpcSignalTest::mReceivedSignal = 0;
int IpcSignalTest::mShmid = 0;
siginfo_t IpcSignalTest::mSiginfo;
// special signal hander for function 'abort'
void IpcSignalTest::SigAbortHandler(int signum)
{
......@@ -115,7 +116,7 @@ void IpcSignalTest::DefaultActionTest(const int signum, const bool expectStop, c
}
} else { // child
LOGD("child start");
KeepRun(100);
KeepRun(KEEP_RUN_TIME);
if (expectStop) {
LOG("Child should has been Terminated, but still alive.");
exit(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册