Modify to generate SIGKILL instead of SIGSEGV in StepCrash 27/280127/4
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 24 Aug 2022 07:12:02 +0000 (16:12 +0900)
committerilho kim <ilho159.kim@samsung.com>
Mon, 5 Sep 2022 01:04:09 +0000 (01:04 +0000)
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 <ilho159.kim@samsung.com>
test/smoke_tests/common/smoke_utils.h

index 6983566..0674247 100644 (file)
@@ -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 {