diff options
-rw-r--r-- | src/bundle_cpp_implementation.h | 4 | ||||
-rw-r--r-- | unit_tests/src/test_main.cc | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/bundle_cpp_implementation.h b/src/bundle_cpp_implementation.h index 5810f09..71bce84 100644 --- a/src/bundle_cpp_implementation.h +++ b/src/bundle_cpp_implementation.h @@ -54,10 +54,10 @@ class Bundle::Impl { private: friend class Bundle; - bundle* handle_; + bundle* handle_ = nullptr; bool copy_ = true; bool own_ = true; - Bundle* parent_; + Bundle* parent_ = nullptr; }; } // namespace tizen_base diff --git a/unit_tests/src/test_main.cc b/unit_tests/src/test_main.cc index df16333..22cae75 100644 --- a/unit_tests/src/test_main.cc +++ b/unit_tests/src/test_main.cc @@ -17,7 +17,14 @@ #include <gtest/gtest.h> #include <gmock/gmock.h> +#include <exception> + int main(int argc, char** argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); + try { + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); + } catch (std::exception const &e) { + std::cout << "test_main caught exception: " << e.what() << std::endl; + return -1; + } } |