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

Unified Diff: test_utils.cc

Issue 6551015: AU: When checking if we've visited a file before, don't follow symlinks. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: unittest 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
« delta_diff_generator.cc ('K') | « 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 3815d7bfabc76ca9dc35e4fb68f082e21b8ff388..85c73d73950eccf676d13713fab3cde718ad5096 100644
--- a/test_utils.cc
+++ b/test_utils.cc
@@ -211,12 +211,15 @@ void CreateExtImageAtPath(const string& path, vector<string>* out_paths) {
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("ln -s bogus %s/boguslink",
+ kMountPath)));
EXPECT_EQ(0, System(StringPrintf("umount -d %s", kMountPath)));
if (out_paths) {
out_paths->clear();
out_paths->push_back("");
out_paths->push_back("/hi");
+ out_paths->push_back("/boguslink");
out_paths->push_back("/hello");
out_paths->push_back("/some_dir");
out_paths->push_back("/some_dir/empty_dir");
« delta_diff_generator.cc ('K') | « delta_performer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698