From f4058b93aa26da5930c11f11d2206372d7a1a4d7 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Wed, 24 Aug 2022 16:12:02 +0900 Subject: [PATCH] Modify to generate SIGKILL instead of SIGSEGV in StepCrash When performing the smoke test many processes are terminated due to SIGSEGV and coredump is generated this can cause a lot of load on the system, so it is replaced with SIGKILL Change-Id: I54d8820097ba2c0a48d48d2185f0277b70f993f2 Signed-off-by: Ilho Kim --- test/smoke_tests/common/smoke_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/smoke_tests/common/smoke_utils.h b/test/smoke_tests/common/smoke_utils.h index 6983566..0674247 100644 --- a/test/smoke_tests/common/smoke_utils.h +++ b/test/smoke_tests/common/smoke_utils.h @@ -383,12 +383,12 @@ class StepCrash : public common_installer::Step { common_installer::Step::Status process() override { if (type_ == CrashStepType::PROCESS) - raise(SIGSEGV); + raise(SIGKILL); return Status::OK; } common_installer::Step::Status clean() override { if (type_ == CrashStepType::CLEAN) - raise(SIGSEGV); + raise(SIGKILL); return Status::OK; } common_installer::Step::Status undo() override { -- 2.7.4