Remove proper install directory in ~AppInstalHelper 62/104462/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 13 Dec 2016 10:10:05 +0000 (11:10 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 13 Dec 2016 10:13:30 +0000 (11:13 +0100)
Until now the destructor of AppInstallHelper was trying to remove m_installDir
which is a directory above actual application installation dir. Removal didn't
succeed if directory was not empty.

Change-Id: I51e5b41eb911d67b7d0c11f5ab3f74d60b759ca0

src/security-manager-tests/common/app_install_helper.cpp

index 5ac0f7c..0436241 100644 (file)
@@ -188,7 +188,7 @@ void AppInstallHelper::removePaths() {
 
     m_fileTypeMap.clear();
 
-    rmdir(m_installDir.c_str());
+    rmdir(getInstallDir().c_str());
     m_isInstallDirCreated = false;
 }