From 8970b0f87f479cb3a7fe6577d716a552285e4c40 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 2 Apr 2021 14:39:00 +0800 Subject: [PATCH] Resolve failed testcases:ActsKernelIPCTest Change-Id: I77688cfd09f49e88a93c785d874072bc826acf4f --- kernel_lite/ipc_posix/signal/SignalTest.h | 1 + kernel_lite/ipc_posix/signal/SignalTestUtils.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel_lite/ipc_posix/signal/SignalTest.h b/kernel_lite/ipc_posix/signal/SignalTest.h index 1a58b0e40..18b61a2d9 100755 --- a/kernel_lite/ipc_posix/signal/SignalTest.h +++ b/kernel_lite/ipc_posix/signal/SignalTest.h @@ -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]; diff --git a/kernel_lite/ipc_posix/signal/SignalTestUtils.cpp b/kernel_lite/ipc_posix/signal/SignalTestUtils.cpp index 9919eb5e5..71cebcd2f 100755 --- a/kernel_lite/ipc_posix/signal/SignalTestUtils.cpp +++ b/kernel_lite/ipc_posix/signal/SignalTestUtils.cpp @@ -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); -- GitLab