Fix ValidatePackageFS in smoke tests 24/88124/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 13 Sep 2016 12:07:08 +0000 (14:07 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 23 Sep 2016 08:04:31 +0000 (01:04 -0700)
Run smoke tests to verify.

Change-Id: I4018ffd9d94aadc764e9b1fcea066896212b8715

src/unit_tests/smoke_test.cc

index e13e6d5..0d619cc 100644 (file)
@@ -205,14 +205,14 @@ void ValidatePackageFS(const std::string& pkgid,
   ASSERT_FALSE(bf::exists(package_backup));
   ASSERT_FALSE(bf::exists(manifest_backup));
 
-  for (bf::recursive_directory_iterator iter(root_path);
+  for (bf::recursive_directory_iterator iter(package_path);
       iter != bf::recursive_directory_iterator(); ++iter) {
     if (bf::is_symlink(symlink_status(iter->path())))
       continue;
     struct stat stats;
     stat(iter->path().c_str(), &stats);
-    ASSERT_EQ(kTestUserId, stats.st_uid);
-    ASSERT_EQ(kTestGroupId, stats.st_gid);
+    ASSERT_EQ(kTestUserId, stats.st_uid) << "Invalid uid: " << iter->path();
+    ASSERT_EQ(kTestGroupId, stats.st_gid) << "Invalid gid: " << iter->path();
   }
 }