Fix ZipFilePerfTest issues by closing the file in each loop iteration.
Test: atest ZipFilePerfTest Bug: 231407205 Change-Id: Ie37da23b9e8468588893a3d4673b6a6350631408
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user