Index: tools/testing/dart/test_suite.dart |
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart |
index b45d9b887aeb32ac6ff2dd63d6d9718a1f296a9d..e31be54dd9e2f6a81e5e88faba9e3da542447ca0 100644 |
--- a/tools/testing/dart/test_suite.dart |
+++ b/tools/testing/dart/test_suite.dart |
@@ -323,8 +323,7 @@ class StandardTestSuite implements TestSuite { |
// Read the entire file into a byte buffer and transform it to a |
// String. This will treat the file as ascii but the only parts |
// we are interested in will be ascii in any case. |
- File file = new File(filename); |
- file.openSync(); |
+ RandomAccessFile file = (new File(filename)).openSync(); |
List chars = new List(file.lengthSync()); |
var offset = 0; |
while (offset != chars.length) { |