int main(int argc, char **argv)
{
+ auto AllTestSuccess = false;
#ifdef TIZEN_TEST_GCOV
setenv("GCOV_PREFIX", "/tmp", 1);
::testing::InitGoogleTest(&argc, argv);
::testing::FLAGS_gtest_death_test_style = "fast";
} catch ( ... ) {
+ std::cout << "error while trying to init google tests.\n";
exit(EXIT_FAILURE);
}
+ try {
+ AllTestSuccess = RUN_ALL_TESTS() == 0 ? true : false;
+ } catch (const ::testing::internal::GoogleTestFailureException & e) {
+ AllTestSuccess = false;
+ std::cout << "GoogleTestFailureException was thrown:" << e.what() << std::endl;
+ std::cout << "\n";
+ }
+
#ifdef TIZEN_TEST_GCOV
__gcov_flush();
#endif
- return RUN_ALL_TESTS();
+ return AllTestSuccess;
}