From: hyunho Date: Tue, 13 Mar 2018 07:37:17 +0000 (+0900) Subject: Add exception handling logic X-Git-Tag: submit/tizen/20180315.021510~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ba8ff233485dfb0d82b7ebb655897e8f608776c;p=platform%2Fcore%2Fappfw%2Fscreen-connector.git Add exception handling logic Change-Id: I48b9b75612afb9d8109f33f22646d3bb354e52fd Signed-off-by: hyunho --- diff --git a/unittest/src/sc_test_main.cpp b/unittest/src/sc_test_main.cpp index 6efbf98..14fe324 100644 --- a/unittest/src/sc_test_main.cpp +++ b/unittest/src/sc_test_main.cpp @@ -2,6 +2,10 @@ #include int main(int argc, char** argv){ - testing::InitGoogleTest(&argc, argv); + try { + testing::InitGoogleTest(&argc, argv); + } catch(...) { + std::cout << "Exception occurred" << std::endl; + } return RUN_ALL_TESTS(); }