From: Haesu Gwon Date: Tue, 5 Jul 2022 00:07:04 +0000 (+0900) Subject: ut_main : Fix uncaught exception X-Git-Tag: submit/tizen/20220705.053326^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7782831aa12c6c6a20c963fbdd767bb693df5aa5;p=platform%2Fcore%2Fapi%2Fmediaeditor.git ut_main : Fix uncaught exception [Version] 0.0.14 [Issue Type] COVERITY defect fix Change-Id: I6eb07449cd9836c002739eca8ee31ab8e6e9bbb1 --- diff --git a/gtest/ut_main.cpp b/gtest/ut_main.cpp index 9a19657..d84a5b4 100644 --- a/gtest/ut_main.cpp +++ b/gtest/ut_main.cpp @@ -16,11 +16,13 @@ #include "gtest/gtest.h" -int main(int argc, char *argv[]) { - ::testing::InitGoogleTest(&argc, argv); - - auto ret = -1; - ret = RUN_ALL_TESTS(); - - return ret; +int main(int argc, char *argv[]) +{ + try { + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); + } catch (const std::exception &e) { + std::cout << "caught exception: " << e.what() << std::endl; + return -1; + } } diff --git a/packaging/capi-media-editor.spec b/packaging/capi-media-editor.spec index 0fc3185..9a799ad 100644 --- a/packaging/capi-media-editor.spec +++ b/packaging/capi-media-editor.spec @@ -1,6 +1,6 @@ Name: capi-media-editor Summary: A Tizen Media Editor API -Version: 0.0.13 +Version: 0.0.14 Release: 0 Group: Multimedia/API License: Apache-2.0