Don't throw exception in dtor
[platform/upstream/csr-framework.git] / test / test-common.h
index 7ea1c01..cdec29a 100644 (file)
@@ -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: