From 1b835cb17aabe8e012bd112b08c1f5e6ec2045f5 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Tue, 13 Sep 2016 14:07:08 +0200 Subject: [PATCH] Fix ValidatePackageFS in smoke tests Run smoke tests to verify. Change-Id: I4018ffd9d94aadc764e9b1fcea066896212b8715 --- src/unit_tests/smoke_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } } -- 2.7.4