From: Damian Pietruchowski Date: Tue, 7 Mar 2017 11:45:28 +0000 (+0100) Subject: [SmokeTest] Fix rw filesystem validation X-Git-Tag: accepted/tizen/common/20170322.154043~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24c8b7dbf25617328525678421ca19c8877cf966;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git [SmokeTest] Fix rw filesystem validation Remove validation for files in rw directories Change-Id: I25c22040609664d5f707f42f67ff53e813b05ca0 Signed-off-by: Damian Pietruchowski --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index 38b9945..e150b84 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -384,8 +384,10 @@ void ValidatePackageFS(const std::string& pkgid, bf::path rw_dir_path = rw_dir; is_rw_dir |= ci::MakeRelativePath(iter->path(), package_path) == rw_dir_path; } - if (is_rw_dir || iter->path().filename() == ".mmc") + if (is_rw_dir || iter->path().filename() == ".mmc") { + iter.no_push(); continue; + } struct stat stats; stat(iter->path().c_str(), &stats); ASSERT_EQ(uid, stats.st_uid) << "Invalid uid: " << iter->path();