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();
}
}