Fix ZipFilePerfTest issues by closing the file in each loop iteration.

Test: atest ZipFilePerfTest
Bug: 231407205
Change-Id: Ie37da23b9e8468588893a3d4673b6a6350631408
This commit is contained in:
Miguel
2022-05-12 15:38:44 +00:00
committed by Miguel Aranda
parent 478a6e14d9
commit f153f7c154

View File

@@ -70,6 +70,9 @@ public class ZipFilePerfTest {
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
while (state.keepRunning()) {
ZipFile zf = new ZipFile(mFile);
state.pauseTiming();
zf.close();
state.resumeTiming();
}
}