Merge "Step Recover Per User Directories for Recovery Mode added" into tizen
[platform/core/appfw/wgt-backend.git] / src / unit_tests / smoke_test.cc
index 3f18a52..0057a32 100644 (file)
@@ -371,6 +371,14 @@ void CheckPackageNonExistance(const std::string& pkgid,
       pkgid, ci::GetRequestMode(kTestUserId),
       kTestUserId));
   PackageCheckCleanup(pkgid, appids);
+  if (kTestUserId == kGlobalUserUid) {
+      ci::UserList list = ci::GetUserList();
+      for (auto& l : list) {
+        bf::path root_path = ci::GetRootAppPath(false, std::get<0>(l));
+        bf::path package_path = root_path / pkgid;
+        ASSERT_FALSE(bf::exists(package_path));
+      }
+  }
 }
 
 void CheckPackageReadonlyNonExistance(const std::string& pkgid,