commit | 84912f242b9a0770008d5b9c515a64da58904568 | [log] [tgz] |
---|---|---|
author | keunyoung <keunyoung@google.com> | Mon Mar 25 19:18:26 2013 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Mar 25 19:18:27 2013 +0000 |
tree | df26d121471e63c9f644e2c913723090ec6d49d5 | |
parent | f1a493b1cc81290265571d65fd6ed96162b19bea [diff] | |
parent | 3929036e909e0fe1d51cc50b0885ed44d35a03b8 [diff] |
Merge "check access before read" into jb-mr2-dev
diff --git a/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/FileUtil.java b/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/FileUtil.java index 087cf0d..319445f 100644 --- a/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/FileUtil.java +++ b/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/FileUtil.java
@@ -190,7 +190,7 @@ MeasureRun run) throws Exception { double[] result = new double[count]; File procIo = new File("/proc/self/io"); - boolean measureIo = procIo.exists(); + boolean measureIo = procIo.exists() && procIo.canRead(); long prev = System.currentTimeMillis(); RWAmount prevAmount = new RWAmount(); if (measureIo) {