From: Sangyoon Jang Date: Mon, 3 Aug 2020 07:32:26 +0000 (+0900) Subject: Fix static analysis issue X-Git-Tag: submit/tizen_5.5/20200805.074030~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d36f35471ddacad4fc23196a557fa2e6e38c88;p=platform%2Fcore%2Fappfw%2Ftpk-backend.git Fix static analysis issue Fix uncaught exepction. Change-Id: Iaecd4303cbdc18e848b614e3df8520ee05a85b9b Signed-off-by: Sangyoon Jang (cherry picked from commit 7335f169e18a7b152b4390a4da19400a726c897e) --- diff --git a/src/unit_tests/recovery_test.cc b/src/unit_tests/recovery_test.cc index 2cbcefc..183f126 100644 --- a/src/unit_tests/recovery_test.cc +++ b/src/unit_tests/recovery_test.cc @@ -397,6 +397,11 @@ int main(int argc, char** argv) { } } bpo::notify(opt_map); + + if (req_type == ReqType::UNKNOWN_REQ) { + std::cerr << options << std::endl; + return 0; + } } catch (...) { std::cerr << "Exception occurred: " << boost::current_exception_diagnostic_information() @@ -404,11 +409,6 @@ int main(int argc, char** argv) { return -1; } - if (req_type == ReqType::UNKNOWN_REQ) { - std::cerr << options << std::endl; - return 0; - } - try { char buf[10][kBufSize] = { 0, }; std::vector gtest_argv;