From: Tomasz Iwanek Date: Tue, 13 Sep 2016 12:07:08 +0000 (+0200) Subject: Fix ValidatePackageFS in smoke tests X-Git-Tag: accepted/tizen/3.0/ivi/20161011.070258~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F88124%2F3;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Fix ValidatePackageFS in smoke tests Run smoke tests to verify. Change-Id: I4018ffd9d94aadc764e9b1fcea066896212b8715 --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index e13e6d5..0d619cc 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -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(); } }