Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: tools/testing/dart/test_runner.dart

Issue 236313005: Avoid exceptions when analyzing truncated test output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index a3d59b9b560e4b082dacf3237ef39a2d5ce17c8e..994c048aefa9ed8188a9d170f2c70a3fadf7c477 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -1464,7 +1464,7 @@ class AnalysisCommandOutputImpl extends CommandOutputImpl {
if (line.length == 0) continue;
List<String> fields = splitMachineError(line);
// We only consider errors/warnings for files of interest.
- if (fields.length > FILENAME) {
+ if (fields.length > FORMATTED_ERROR) {
if (fields[ERROR_LEVEL] == 'ERROR') {
outErrors.add(fields[FORMATTED_ERROR]);
} else if (fields[ERROR_LEVEL] == 'WARNING') {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698