Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: test_utils.cc

Issue 6528006: AU: tolerate files that are symlinks in src image, yet not in new image. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fixes for review Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « delta_performer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_utils.cc
diff --git a/test_utils.cc b/test_utils.cc
index 9d1b5d00dce2f04308f5d3e95298fe03e3ad6503..3815d7bfabc76ca9dc35e4fb68f082e21b8ff388 100644
--- a/test_utils.cc
+++ b/test_utils.cc
@@ -208,6 +208,9 @@ void CreateExtImageAtPath(const string& path, vector<string>* out_paths) {
EXPECT_EQ(0, System(StringPrintf("ln -s /some/target %s/sym", kMountPath)));
EXPECT_EQ(0, System(StringPrintf("ln %s/some_dir/test %s/testlink",
kMountPath, kMountPath)));
+ EXPECT_EQ(0, System(StringPrintf("echo T > %s/srchardlink0", kMountPath)));
+ EXPECT_EQ(0, System(StringPrintf("ln %s/srchardlink0 %s/srchardlink1",
+ kMountPath, kMountPath)));
EXPECT_EQ(0, System(StringPrintf("umount -d %s", kMountPath)));
if (out_paths) {
@@ -223,6 +226,8 @@ void CreateExtImageAtPath(const string& path, vector<string>* out_paths) {
out_paths->push_back("/cdev");
out_paths->push_back("/testlink");
out_paths->push_back("/sym");
+ out_paths->push_back("/srchardlink0");
+ out_paths->push_back("/srchardlink1");
out_paths->push_back("/lost+found");
}
}
« no previous file with comments | « delta_performer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698