From: Krzysztof Jackiewicz Date: Wed, 30 Apr 2025 08:38:15 +0000 (+0200) Subject: Revert "Add handling uncaught exceptions from the child process function" X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F323606%2F1;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Revert "Add handling uncaught exceptions from the child process function" This reverts commit a8ae172c7481236669783f870698640fc9409b4d. Without it, we won't be able to get the failed assertion info in RUNNER_CHILD_TESTs. Change-Id: Ib38eee248e950e30e8eae88daf03e0289152d4a4 --- diff --git a/src/common/tests_common.cpp b/src/common/tests_common.cpp index bbc3c0b2..c9c411aa 100644 --- a/src/common/tests_common.cpp +++ b/src/common/tests_common.cpp @@ -25,7 +25,6 @@ #include #include -#include #include #include @@ -147,11 +146,7 @@ pid_t runInChild(const std::function &process) { RUNNER_ASSERT_ERRNO_MSG(pid >= 0, "fork failed"); if (pid == 0) { - try { - process(); - } catch (...) { - exit(EXIT_FAILURE); - } + process(); exit(EXIT_SUCCESS); } return pid; @@ -161,11 +156,7 @@ pid_t runInChildParentWait(const std::function &process) { pid_t pid = fork(); RUNNER_ASSERT_ERRNO_MSG(pid >= 0, "fork failed"); if (pid == 0) { - try { - process(); - } catch (...) { - exit(EXIT_FAILURE); - } + process(); exit(EXIT_SUCCESS); } waitPid(pid);