[SmokeTest] Add SIGINT and SIGSEGV handling
[platform/core/appfw/wgt-backend.git] / src / unit_tests / extensive_smoke_test.cc
index 58f11f6..043c293 100644 (file)
@@ -382,7 +382,9 @@ int main(int argc,  char** argv) {
     ::testing::GTEST_FLAG(filter) = "SmokeTest.*";
   }
   testing::InitGoogleTest(&argc, argv);
-  testing::Environment *env = testing::AddGlobalTestEnvironment(
+  env = testing::AddGlobalTestEnvironment(
       new common_installer::SmokeEnvironment(request_mode));
+  signal(SIGINT, signalHandler);
+  signal(SIGSEGV, signalHandler);
   return RUN_ALL_TESTS();
 }