Add exception handling logic 17/172317/1
authorhyunho <hhstark.kang@samsung.com>
Tue, 13 Mar 2018 07:37:17 +0000 (16:37 +0900)
committerhyunho <hhstark.kang@samsung.com>
Tue, 13 Mar 2018 07:37:17 +0000 (16:37 +0900)
Change-Id: I48b9b75612afb9d8109f33f22646d3bb354e52fd
Signed-off-by: hyunho <hhstark.kang@samsung.com>
unittest/src/sc_test_main.cpp

index 6efbf98..14fe324 100644 (file)
@@ -2,6 +2,10 @@
 #include <gmock/gmock.h>
 
 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();
 }