Improve Zipalign test

Problem: Zipalign test invokes process but not verify.
Solution: Invoke both during test.

Test: Unit Test
Bug: NA
Change-Id: If603df301048f4b508e3429c4a8c77339ab351ae
This commit is contained in:
Fabien Sanglard 2020-11-05 18:36:56 -08:00
parent 6f83343e7e
commit 4b4b495d88

View file

@ -19,6 +19,9 @@ 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);
}