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

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

Issue 9466008: Use the component information when the test is being scheduled instead of when it's being created. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « tools/testing/dart/multitest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
===================================================================
--- tools/testing/dart/test_suite.dart (revision 4566)
+++ tools/testing/dart/test_suite.dart (working copy)
@@ -177,9 +177,11 @@
bool isNegative;
bool isNegativeIfChecked;
bool hasFatalTypeErrors;
+ bool hasRuntimeErrors;
TestInformation(this.filename, this.optionsFromFile, this.isNegative,
- this.isNegativeIfChecked, this.hasFatalTypeErrors);
+ this.isNegativeIfChecked, this.hasFatalTypeErrors,
+ this.hasRuntimeErrors);
}
@@ -296,6 +298,9 @@
int middle = filename.lastIndexOf('_');
testName = filename.substring(start + 1, middle) + '/' +
filename.substring(middle + 1, filename.length - 5);
+ if ((configuration['component'] == 'dartc') && info.hasRuntimeErrors) {
+ isNegative = false;
+ }
Bill Hesse 2012/02/24 13:58:36 I think this could be moved to line 345, since run
ngeoffray 2012/02/24 14:08:10 Done.
} else {
// This case is hit by the dartc client compilation
// tests. These tests are pretty broken compared to the
@@ -362,13 +367,15 @@
return (String filename,
bool isNegative,
[bool isNegativeIfChecked = false,
- bool hasFatalTypeErrors = false]) {
+ bool hasFatalTypeErrors = false,
+ bool hasRuntimeErrors = false]) {
// Cache the test information for each test case.
var info = new TestInformation(filename,
optionsFromFile,
isNegative,
isNegativeIfChecked,
- hasFatalTypeErrors);
+ hasFatalTypeErrors,
+ hasRuntimeErrors);
cachedTests.add(info);
enqueueTestCaseFromTestInformation(info);
};
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698