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

Commit 3472045a authored by Fabien Sanglard's avatar Fabien Sanglard Committed by Automerger Merge Worker
Browse files

Merge "Improve Zipalign test" am: 3d38ff9f am: 70f8ef61 am: 5edf2907

Original change: https://android-review.googlesource.com/c/platform/build/+/1489088

Change-Id: Iba78bdb6a06f1fe45e878659784419fb783f070e
parents bd9c7914 5edf2907
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -19,8 +19,11 @@ TEST(Align, Unaligned) {
  const std::string src = GetTestPath("unaligned.zip");
  const std::string dst = GetTestPath("unaligned_out.zip");

  int result = process(src.c_str(), dst.c_str(), 4, true, false, 4096);
  ASSERT_EQ(0, result);
  int processed = process(src.c_str(), dst.c_str(), 4, true, false, 4096);
  ASSERT_EQ(0, processed);

  int verified = verify(dst.c_str(), 4, true, false);
  ASSERT_EQ(0, verified);
}

// Align a zip featuring a hole at the beginning. The