Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8085aed authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Fix libbase file.Readlink test on marlin/sailfish." am: 3052d123

am: e8250c07

Change-Id: Ie2a40317a617261cc57621d82a32cd7b5428537e
parents f4b14761 e8250c07
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -134,7 +134,11 @@ TEST(file, Readlink) {
  // Linux doesn't allow empty symbolic links.
  std::string min("x");
  // ext2 and ext4 both have PAGE_SIZE limits.
  std::string max(static_cast<size_t>(4096 - 1), 'x');
  // If file encryption is enabled, there's extra overhead to store the
  // size of the encrypted symlink target. There's also an off-by-one
  // in current kernels (and marlin/sailfish where we're seeing this
  // failure are still on 3.18, far from current). http://b/33306057.
  std::string max(static_cast<size_t>(4096 - 2 - 1 - 1), 'x');

  TemporaryDir td;
  std::string min_path{std::string(td.path) + "/" + "min"};