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

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 14858051: Handle the new analyzer type warnings in tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 // Read the returned list of errors and stuff them away. 839 // Read the returned list of errors and stuff them away.
840 var stderrLines = decodeUtf8(super.stderr).split("\n"); 840 var stderrLines = decodeUtf8(super.stderr).split("\n");
841 for (String line in stderrLines) { 841 for (String line in stderrLines) {
842 if (line.length == 0) continue; 842 if (line.length == 0) continue;
843 List<String> fields = splitMachineError(line); 843 List<String> fields = splitMachineError(line);
844 if (fields[ERROR_LEVEL] == 'ERROR') { 844 if (fields[ERROR_LEVEL] == 'ERROR') {
845 errors.add(fields[FORMATTED_ERROR]); 845 errors.add(fields[FORMATTED_ERROR]);
846 } else if (fields[ERROR_LEVEL] == 'WARNING') { 846 } else if (fields[ERROR_LEVEL] == 'WARNING') {
847 // We only care about testing Static type warnings 847 // We only care about testing Static type warnings
848 // ignore all others 848 // ignore all others
849 if (fields[ERROR_TYPE] == 'STATIC_TYPE') { 849 if (fields[ERROR_TYPE] == 'STATIC_TYPE' || fields[ERROR_TYPE] == 'STATIC _TYPE_WARNING') {
850 staticWarnings.add(fields[FORMATTED_ERROR]); 850 staticWarnings.add(fields[FORMATTED_ERROR]);
851 } 851 }
852 } 852 }
853 // OK to Skip error output that doesn't match the machine format 853 // OK to Skip error output that doesn't match the machine format
854 } 854 }
855 if (testCase.info != null 855 if (testCase.info != null
856 && testCase.info.optionsFromFile['isMultitest']) { 856 && testCase.info.optionsFromFile['isMultitest']) {
857 return _didMultitestFail(errors, staticWarnings); 857 return _didMultitestFail(errors, staticWarnings);
858 } 858 }
859 return _didStandardTestFail(errors, staticWarnings); 859 return _didStandardTestFail(errors, staticWarnings);
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 } 1845 }
1846 } 1846 }
1847 1847
1848 void eventAllTestsDone() { 1848 void eventAllTestsDone() {
1849 for (var listener in _eventListener) { 1849 for (var listener in _eventListener) {
1850 listener.allDone(); 1850 listener.allDone();
1851 } 1851 }
1852 } 1852 }
1853 } 1853 }
1854 1854
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698