diff options
-rw-r--r-- | test/internals/test-main.cpp | 11 | ||||
-rw-r--r-- | test/test-common.h | 4 |
2 files changed, 3 insertions, 12 deletions
diff --git a/test/internals/test-main.cpp b/test/internals/test-main.cpp index 9ba5318..c9c16b3 100644 --- a/test/internals/test-main.cpp +++ b/test/internals/test-main.cpp @@ -68,15 +68,8 @@ struct Initializer { if (!isEngineInitialized) return; - int ret = csre_cs_global_deinitialize(); - - if (ret != CSRE_ERROR_NONE) - throw std::logic_error("Failed to deinit content screening engine."); - - ret = csre_wp_global_deinitialize(); - - if (ret != CSRE_ERROR_NONE) - throw std::logic_error("Failed to deinit web protection engine."); + csre_cs_global_deinitialize(); + csre_wp_global_deinitialize(); BOOST_MESSAGE("Deinitialize engines"); } diff --git a/test/test-common.h b/test/test-common.h index 7ea1c01..cdec29a 100644 --- a/test/test-common.h +++ b/test/test-common.h @@ -223,9 +223,7 @@ public: ~ScopedChDir() { - if (::chdir(cdbuf) == -1) - throw std::system_error(errno, std::system_category(), - std::string(cdbuf) + " chdir failed"); + ::chdir(cdbuf); } private: |