From 9ba8ff233485dfb0d82b7ebb655897e8f608776c Mon Sep 17 00:00:00 2001 From: hyunho Date: Tue, 13 Mar 2018 16:37:17 +0900 Subject: [PATCH] Add exception handling logic Change-Id: I48b9b75612afb9d8109f33f22646d3bb354e52fd Signed-off-by: hyunho --- unittest/src/sc_test_main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } -- 2.7.4